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 | 6a8b60156b40492df82d172c336741f927dfb738 (patch) | |
tree | 623b51cdb11fb0a237fea0a29f49defe758a6048 /core | |
parent | a5eb9399da215d8c5692aaa2a2a45a45545e7088 (diff) | |
download | prosody-6a8b60156b40492df82d172c336741f927dfb738.tar.gz prosody-6a8b60156b40492df82d172c336741f927dfb738.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 |