diff options
author | Matthew Wild <mwild1@gmail.com> | 2010-11-27 21:57:20 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2010-11-27 21:57:20 +0000 |
commit | 22fdcc08f8418d1e42fbc2107bb9e4d75a1d41ae (patch) | |
tree | 1b2310c0f8996b6ae4f7864b7fc459388d1ae87c /core | |
parent | 8392d6598a94e2bcc00686b0524964a387f0834c (diff) | |
download | prosody-22fdcc08f8418d1e42fbc2107bb9e4d75a1d41ae.tar.gz prosody-22fdcc08f8418d1e42fbc2107bb9e4d75a1d41ae.zip |
storagemanager: Return driver from load_driver() if successful
Diffstat (limited to 'core')
-rw-r--r-- | core/storagemanager.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/storagemanager.lua b/core/storagemanager.lua index ee931d7d..3501d2c0 100644 --- a/core/storagemanager.lua +++ b/core/storagemanager.lua @@ -44,6 +44,7 @@ local function load_driver(host, driver_name) 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 |