Diff

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
line wrap: on
line diff
--- 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");