Comparison

plugins/mod_s2s/mod_s2s.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 6684:53635a91c95c
child 7101:f83211f4d776
child 7677:8613086779fa
comparison
equal deleted inserted replaced
7097:5a71aaa2c542 7100:301d58705667
669 module:hook("server-stopping", function(event) 669 module:hook("server-stopping", function(event)
670 local reason = event.reason; 670 local reason = event.reason;
671 for _, session in pairs(sessions) do 671 for _, session in pairs(sessions) do
672 session:close{ condition = "system-shutdown", text = reason }; 672 session:close{ condition = "system-shutdown", text = reason };
673 end 673 end
674 end,500); 674 end, -200);
675 675
676 676
677 677
678 module:provides("net", { 678 module:provides("net", {
679 name = "s2s"; 679 name = "s2s";