Software /
code /
prosody
Comparison
plugins/mod_c2s.lua @ 12302:6a8c680b8677
mod_c2s: Ignore unused event payload [luacheck]
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 18 Feb 2022 23:13:01 +0100 |
parent | 12301:4f1fe6eb1ddb |
child | 12309:926a6c5d13e7 |
comparison
equal
deleted
inserted
replaced
12301:4f1fe6eb1ddb | 12302:6a8c680b8677 |
---|---|
422 module:hook("c2s-read-timeout", keepalive, -1); | 422 module:hook("c2s-read-timeout", keepalive, -1); |
423 end | 423 end |
424 | 424 |
425 module:hook("c2s-read-timeout", keepalive, -1); | 425 module:hook("c2s-read-timeout", keepalive, -1); |
426 | 426 |
427 module:hook("server-stopping", function(event) | 427 module:hook("server-stopping", function(event) -- luacheck: ignore 212/event |
428 -- Close ports | 428 -- Close ports |
429 local pm = require "core.portmanager"; | 429 local pm = require "core.portmanager"; |
430 for _, netservice in pairs(module.items["net-provider"]) do | 430 for _, netservice in pairs(module.items["net-provider"]) do |
431 pm.unregister_service(netservice.name, netservice); | 431 pm.unregister_service(netservice.name, netservice); |
432 end | 432 end |