aboutsummaryrefslogtreecommitdiffstats
path: root/core/storagemanager.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2010-11-27 21:57:20 +0000
committerMatthew Wild <mwild1@gmail.com>2010-11-27 21:57:20 +0000
commit6a8b60156b40492df82d172c336741f927dfb738 (patch)
tree623b51cdb11fb0a237fea0a29f49defe758a6048 /core/storagemanager.lua
parenta5eb9399da215d8c5692aaa2a2a45a45545e7088 (diff)
downloadprosody-6a8b60156b40492df82d172c336741f927dfb738.tar.gz
prosody-6a8b60156b40492df82d172c336741f927dfb738.zip
storagemanager: Return driver from load_driver() if successful
Diffstat (limited to 'core/storagemanager.lua')
-rw-r--r--core/storagemanager.lua1
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