aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2017-03-22 10:38:36 +0100
committerKim Alvefur <zash@zash.se>2017-03-22 10:38:36 +0100
commit932c6e1f445a6c3ba33ffdd11ba96b6e3a8b98e8 (patch)
treebab22294f4d82626bb368408210a15d4bb17a145
parent4a5b4067a983ad128e4f89d9b0039f30167a3522 (diff)
downloadprosody-932c6e1f445a6c3ba33ffdd11ba96b6e3a8b98e8.tar.gz
prosody-932c6e1f445a6c3ba33ffdd11ba96b6e3a8b98e8.zip
storagemanager: Use the existing local reference to 'hosts'
-rw-r--r--core/storagemanager.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/storagemanager.lua b/core/storagemanager.lua
index 75cb8d0f..c93438af 100644
--- a/core/storagemanager.lua
+++ b/core/storagemanager.lua
@@ -164,7 +164,7 @@ function open(host, store, typ)
end
if ret then
local event_data = { host = host, store_name = store, store_type = typ, store = ret };
- prosody.hosts[host].events.fire_event("store-opened", event_data);
+ hosts[host].events.fire_event("store-opened", event_data);
ret, err = event_data.store, event_data.store_err;
end
return ret, err;