From 6ca7b680e092df2e4f154a12032ad5dc96b93204 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Wed, 14 Jul 2021 02:53:42 +0200 Subject: mod_s2s: Don't close connections on reload --- plugins/mod_s2s.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'plugins') diff --git a/plugins/mod_s2s.lua b/plugins/mod_s2s.lua index ca06c281..9aaecd6e 100644 --- a/plugins/mod_s2s.lua +++ b/plugins/mod_s2s.lua @@ -261,6 +261,7 @@ function module.add_host(module) 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"); -- cgit v1.2.3