Software /
code /
prosody
Changeset
3789:3bd0b625f96e
storagemanager: Return driver from load_driver() if successful
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sat, 27 Nov 2010 21:57:20 +0000 |
parents | 3788:588904a9fd8b |
children | 3790:23cd998c765b |
files | core/storagemanager.lua |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/core/storagemanager.lua Sun Nov 28 02:42:02 2010 +0500 +++ 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