Software /
code /
prosody
Diff
core/storagemanager.lua @ 3661:f8879cee87a2
storagemanager: Return driver from load_driver() if successful
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sat, 27 Nov 2010 21:57:20 +0000 |
parent | 3659:aa7bf12a5668 |
child | 3662:dc3ccef7898f |
line wrap: on
line diff
--- a/core/storagemanager.lua Sat Nov 27 21:53:10 2010 +0000 +++ b/core/storagemanager.lua Sat Nov 27 21:57:20 2010 +0000 @@ -44,6 +44,7 @@ if not driver then if driver_name ~= "internal" then modulemanager.load(host, "storage_"..driver_name); + return stores_available:get(host, driver_name); else return setmetatable({host = host}, default_driver_mt); end