aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2016-10-15 17:40:31 +0200
committerKim Alvefur <zash@zash.se>2016-10-15 17:40:31 +0200
commite46e48a35cd0973d6a247fc0f3e56127c50e380b (patch)
treef2b12fa17b833e02a8462a204c32bfbc5fbb7f08 /plugins
parentc94b7bbfcffdd04cd2a88af38feb63b1dd99fe8b (diff)
downloadprosody-e46e48a35cd0973d6a247fc0f3e56127c50e380b.tar.gz
prosody-e46e48a35cd0973d6a247fc0f3e56127c50e380b.zip
MUC: Run component shutdown after mod_c2s has closed its sessions (prevents ghosts)
Diffstat (limited to 'plugins')
-rw-r--r--plugins/muc/mod_muc.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/muc/mod_muc.lua b/plugins/muc/mod_muc.lua
index d8553d5e..12b95b2c 100644
--- a/plugins/muc/mod_muc.lua
+++ b/plugins/muc/mod_muc.lua
@@ -306,7 +306,7 @@ function shutdown_component()
room:save(nil, true);
end
end
-module:hook_global("server-stopping", shutdown_component);
+module:hook_global("server-stopping", shutdown_component, -300);
do -- Ad-hoc commands
module:depends "adhoc";