Diff

core/s2smanager.lua @ 2749:8dc5f3651501

s2smanager: Don't re-destroy destroyed sessions
author Matthew Wild <mwild1@gmail.com>
date Sun, 14 Mar 2010 02:57:22 +0000
parent 2748:85a242cd1bc4
child 2892:9f214431de29
line wrap: on
line diff
--- 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