Software /
code /
prosody
Comparison
plugins/mod_s2s.lua @ 11684:8b0baf3003fb
mod_s2s: Don't close connections on reload
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 14 Jul 2021 02:53:42 +0200 |
parent | 11683:41b144a93897 |
child | 11704:0a8671f32424 |
comparison
equal
deleted
inserted
replaced
11683:41b144a93897 | 11684:8b0baf3003fb |
---|---|
259 return true; | 259 return true; |
260 end | 260 end |
261 end, -1); | 261 end, -1); |
262 | 262 |
263 function module.unload() | 263 function module.unload() |
264 if module.reloading then return end | |
264 for _, session in pairs(sessions) do | 265 for _, session in pairs(sessions) do |
265 if session.to_host == module.host or session.from_host == module.host then | 266 if session.to_host == module.host or session.from_host == module.host then |
266 session:close("host-gone"); | 267 session:close("host-gone"); |
267 end | 268 end |
268 end | 269 end |