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
commit22fdcc08f8418d1e42fbc2107bb9e4d75a1d41ae (patch)
tree1b2310c0f8996b6ae4f7864b7fc459388d1ae87c /core/storagemanager.lua
parent8392d6598a94e2bcc00686b0524964a387f0834c (diff)
downloadprosody-22fdcc08f8418d1e42fbc2107bb9e4d75a1d41ae.tar.gz
prosody-22fdcc08f8418d1e42fbc2107bb9e4d75a1d41ae.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