aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_s2s
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2016-01-26 00:28:07 +0100
committerKim Alvefur <zash@zash.se>2016-01-26 00:28:07 +0100
commit1875b4a83dd0ab0e0325b621620aa486b4e1322d (patch)
tree451210d5e189e731281dc4b6d5514c253cb0fb51 /plugins/mod_s2s
parent2ed7876beae4800d8ba88a61607612350bfeca73 (diff)
downloadprosody-1875b4a83dd0ab0e0325b621620aa486b4e1322d.tar.gz
prosody-1875b4a83dd0ab0e0325b621620aa486b4e1322d.zip
mod_c2s, mod_s2s: Lower priority of session shutdown to negative, so that plugins hooking at the default priority run first (fixes #601)
Diffstat (limited to 'plugins/mod_s2s')
-rw-r--r--plugins/mod_s2s/mod_s2s.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_s2s/mod_s2s.lua b/plugins/mod_s2s/mod_s2s.lua
index ee539a2a..4173fcfa 100644
--- a/plugins/mod_s2s/mod_s2s.lua
+++ b/plugins/mod_s2s/mod_s2s.lua
@@ -671,7 +671,7 @@ module:hook("server-stopping", function(event)
for _, session in pairs(sessions) do
session:close{ condition = "system-shutdown", text = reason };
end
-end,500);
+end, -200);