diff options
author | Kim Alvefur <zash@zash.se> | 2016-01-26 00:28:07 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2016-01-26 00:28:07 +0100 |
commit | a5ed824a00990ccd5f2c8ae1838c13b1ad1990fc (patch) | |
tree | 451210d5e189e731281dc4b6d5514c253cb0fb51 /plugins | |
parent | 48feb105c43a32c3e956ade72946551efed82b93 (diff) | |
download | prosody-a5ed824a00990ccd5f2c8ae1838c13b1ad1990fc.tar.gz prosody-a5ed824a00990ccd5f2c8ae1838c13b1ad1990fc.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')
-rw-r--r-- | plugins/mod_c2s.lua | 2 | ||||
-rw-r--r-- | plugins/mod_s2s/mod_s2s.lua | 2 |
2 files changed, 2 insertions, 2 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); 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); |