Software /
code /
prosody
Comparison
plugins/mod_c2s.lua @ 7101:f83211f4d776
Merge 0.9->0.10
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 26 Jan 2016 14:15:00 +0100 |
parent | 6846:7eb166fa1f26 |
parent | 7100:301d58705667 |
child | 7224:07a4c807a94a |
comparison
equal
deleted
inserted
replaced
7098:5286e79c6829 | 7101:f83211f4d776 |
---|---|
311 module:hook("server-stopping", function(event) | 311 module:hook("server-stopping", function(event) |
312 local reason = event.reason; | 312 local reason = event.reason; |
313 for _, session in pairs(sessions) do | 313 for _, session in pairs(sessions) do |
314 session:close{ condition = "system-shutdown", text = reason }; | 314 session:close{ condition = "system-shutdown", text = reason }; |
315 end | 315 end |
316 end, 1000); | 316 end, -100); |
317 | 317 |
318 | 318 |
319 | 319 |
320 module:provides("net", { | 320 module:provides("net", { |
321 name = "c2s"; | 321 name = "c2s"; |