Software /
code /
prosody
Changeset
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 |
parents | 3660:d50bf9f55ff9 |
children | 3662:dc3ccef7898f |
files | core/storagemanager.lua |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
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