aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_c2s.lua
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
commit1d210c380d7b383b0751eda28971d81ab8c39531 (patch)
tree451210d5e189e731281dc4b6d5514c253cb0fb51 /plugins/mod_c2s.lua
parentb6881235ed42e490852f99d7b0d69996fde437f0 (diff)
downloadprosody-1d210c380d7b383b0751eda28971d81ab8c39531.tar.gz
prosody-1d210c380d7b383b0751eda28971d81ab8c39531.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_c2s.lua')
-rw-r--r--plugins/mod_c2s.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_c2s.lua b/plugins/mod_c2s.lua
index 3d6487c9..8524c37e 100644
--- a/plugins/mod_c2s.lua
+++ b/plugins/mod_c2s.lua
@@ -275,7 +275,7 @@ module:hook("server-stopping", function(event)
for _, session in pairs(sessions) do
session:close{ condition = "system-shutdown", text = reason };
end
-end, 1000);
+end, -100);