From 1d210c380d7b383b0751eda28971d81ab8c39531 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Tue, 26 Jan 2016 00:28:07 +0100 Subject: mod_c2s, mod_s2s: Lower priority of session shutdown to negative, so that plugins hooking at the default priority run first (fixes #601) --- plugins/mod_c2s.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/mod_c2s.lua') 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); -- cgit v1.2.3