Changeset

7994:3325ac397f17

storagemanager: Use the existing local reference to 'hosts'
author Kim Alvefur <zash@zash.se>
date Wed, 22 Mar 2017 10:38:36 +0100
parents 7993:c654c92aad55
children 7995:b99404a340fc
files core/storagemanager.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/core/storagemanager.lua	Tue Mar 21 15:18:35 2017 +0100
+++ b/core/storagemanager.lua	Wed Mar 22 10:38:36 2017 +0100
@@ -164,7 +164,7 @@
 	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;