diff options
author | Kim Alvefur <zash@zash.se> | 2021-07-14 02:53:42 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2021-07-14 02:53:42 +0200 |
commit | 6ca7b680e092df2e4f154a12032ad5dc96b93204 (patch) | |
tree | 2dafc0ee781e12de4290c3d2dd70a87cd4e5c693 /plugins | |
parent | 064494bbec51f5df79df585abc11009e71e14e86 (diff) | |
download | prosody-6ca7b680e092df2e4f154a12032ad5dc96b93204.tar.gz prosody-6ca7b680e092df2e4f154a12032ad5dc96b93204.zip |
mod_s2s: Don't close connections on reload
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_s2s.lua | 1 |
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"); |