Software /
code /
prosody
Comparison
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 |
comparison
equal
deleted
inserted
replaced
7097:5a71aaa2c542 | 7100:301d58705667 |
---|---|
273 module:hook("server-stopping", function(event) | 273 module:hook("server-stopping", function(event) |
274 local reason = event.reason; | 274 local reason = event.reason; |
275 for _, session in pairs(sessions) do | 275 for _, session in pairs(sessions) do |
276 session:close{ condition = "system-shutdown", text = reason }; | 276 session:close{ condition = "system-shutdown", text = reason }; |
277 end | 277 end |
278 end, 1000); | 278 end, -100); |
279 | 279 |
280 | 280 |
281 | 281 |
282 module:provides("net", { | 282 module:provides("net", { |
283 name = "c2s"; | 283 name = "c2s"; |