]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
send break sig after sending messages and events to sessions
authorAnthony Minessale <anthony.minessale@gmail.com>
Thu, 22 Feb 2007 16:06:42 +0000 (16:06 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Thu, 22 Feb 2007 16:06:42 +0000 (16:06 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4346 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_core.c

index 234f52748f4e3a174bd90a612e86f0341d963faf..8c4bab2b23522b8c6236483c6443da634b192153 100644 (file)
@@ -1761,6 +1761,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_receive_message(switch_core_
                        }
                }
        }
+       switch_core_session_kill_channel(session, SWITCH_SIG_BREAK);
        return status;
 }
 
@@ -1864,7 +1865,9 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_receive_event(switch_core_se
                }
         switch_core_session_rwunlock(session);
        }
-       
+
+       switch_core_session_kill_channel(session, SWITCH_SIG_BREAK);
+
        return status;
 }