# HG changeset patch # User Kim Alvefur # Date 1375483860 -7200 # Node ID 6fd328b8e1365add875abfac7ed05ee6939dbceb # Parent 901e361af918bf3fd7e699b21c1bed50a860ddac mod_bidi: Don't try to send on destroyed sessions diff -r 901e361af918 -r 6fd328b8e136 mod_bidi/mod_bidi.lua --- a/mod_bidi/mod_bidi.lua Sat Aug 03 00:35:20 2013 +0200 +++ b/mod_bidi/mod_bidi.lua Sat Aug 03 00:51:00 2013 +0200 @@ -59,7 +59,7 @@ local from_host, to_host, stanza = event.from_host, event.to_host, event.stanza; if from_host ~= module.host then return end local to_session = bidi_sessions[to_host] - if not to_session then return end + if not to_session or to_session.type ~= "s2sin" then return end return to_session.sends2s(stanza); end, -2);