Diff

plugins/mod_c2s.lua @ 7100:301d58705667

mod_c2s, mod_s2s: Lower priority of session shutdown to negative, so that plugins hooking at the default priority run first (fixes #601)
author Kim Alvefur <zash@zash.se>
date Tue, 26 Jan 2016 00:28:07 +0100
parent 6380:4220ffb87b22
child 7101:f83211f4d776
child 7221:56e65b1e54e8
line wrap: on
line diff
--- a/plugins/mod_c2s.lua	Fri Jan 22 02:00:43 2016 +0100
+++ b/plugins/mod_c2s.lua	Tue Jan 26 00:28:07 2016 +0100
@@ -275,7 +275,7 @@
 	for _, session in pairs(sessions) do
 		session:close{ condition = "system-shutdown", text = reason };
 	end
-end, 1000);
+end, -100);