# HG changeset patch # User Kim Alvefur # Date 1626224022 -7200 # Node ID 8b0baf3003fbe66f24ec32c81c67a4b475d1a0f5 # Parent 41b144a93897c64663d3f14c066dea1e41eab270 mod_s2s: Don't close connections on reload diff -r 41b144a93897 -r 8b0baf3003fb plugins/mod_s2s.lua --- a/plugins/mod_s2s.lua Wed Jul 14 02:39:54 2021 +0200 +++ b/plugins/mod_s2s.lua Wed Jul 14 02:53:42 2021 +0200 @@ -261,6 +261,7 @@ end, -1); function module.unload() + if module.reloading then return end for _, session in pairs(sessions) do if session.to_host == module.host or session.from_host == module.host then session:close("host-gone");