Changeset

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
parents 7097:5a71aaa2c542
children 7101:f83211f4d776 7104:352270bc0439
files plugins/mod_c2s.lua plugins/mod_s2s/mod_s2s.lua
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
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);
 
 
 
--- a/plugins/mod_s2s/mod_s2s.lua	Fri Jan 22 02:00:43 2016 +0100
+++ b/plugins/mod_s2s/mod_s2s.lua	Tue Jan 26 00:28:07 2016 +0100
@@ -671,7 +671,7 @@
 	for _, session in pairs(sessions) do
 		session:close{ condition = "system-shutdown", text = reason };
 	end
-end,500);
+end, -200);