# HG changeset patch # User Kim Alvefur # Date 1358321600 -3600 # Node ID 844b6ef5d4c488177271f452bca2553c407a7cd6 # Parent d24d87ca3f5f47ba0cb07b18931795e33258db35 mod_bidi: Disassociate bidi and original session when they are destroyed diff -r d24d87ca3f5f -r 844b6ef5d4c4 mod_bidi/mod_bidi.lua --- a/mod_bidi/mod_bidi.lua Wed Jan 16 02:27:49 2013 +0100 +++ b/mod_bidi/mod_bidi.lua Wed Jan 16 08:33:20 2013 +0100 @@ -112,12 +112,12 @@ local session = event.session; if session.bidi_session then local bidi_session = session.bidi_session; - session.bidi_session = nil; + session.bidi_session, bidi_session.orig_session = nil, nil; session.log("debug", "Tearing down bidirectional stream"); s2smanager.destroy_session(bidi_session, event.reason); elseif session.orig_session then local orig_session = session.orig_session; - session.orig_session = nil; + orig_session.bidi_session, session.orig_session = nil, nil; orig_session.log("debug", "Tearing down bidirectional stream"); s2smanager.destroy_session(orig_session, event.reason); end