core/s2smanager.lua

changeset 2749
8dc5f3651501
parent 2748
85a242cd1bc4
child 2892
9f214431de29
--- a/core/s2smanager.lua	Sun Mar 14 02:56:57 2010 +0000
+++ b/core/s2smanager.lua	Sun Mar 14 02:57:22 2010 +0000
@@ -533,6 +533,7 @@
 end
 
 function destroy_session(session, reason)
+	if session.destroyed then return; end
 	(session.log or log)("info", "Destroying "..tostring(session.direction).." session "..tostring(session.from_host).."->"..tostring(session.to_host));
 	
 	if session.direction == "outgoing" then

mercurial