aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_s2s.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2021-07-14 02:53:42 +0200
committerKim Alvefur <zash@zash.se>2021-07-14 02:53:42 +0200
commit6ca7b680e092df2e4f154a12032ad5dc96b93204 (patch)
tree2dafc0ee781e12de4290c3d2dd70a87cd4e5c693 /plugins/mod_s2s.lua
parent064494bbec51f5df79df585abc11009e71e14e86 (diff)
downloadprosody-6ca7b680e092df2e4f154a12032ad5dc96b93204.tar.gz
prosody-6ca7b680e092df2e4f154a12032ad5dc96b93204.zip
mod_s2s: Don't close connections on reload
Diffstat (limited to 'plugins/mod_s2s.lua')
-rw-r--r--plugins/mod_s2s.lua1
1 files changed, 1 insertions, 0 deletions
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");