[asterisk-commits] file: branch file/bridging r79140 - /team/file/bridging/main/bridging.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Fri Aug 10 19:15:45 CDT 2007
Author: file
Date: Fri Aug 10 19:15:44 2007
New Revision: 79140
URL: http://svn.digium.com/view/asterisk?view=rev&rev=79140
Log:
When running in multithreaded mode don't bother signalling the bridged channel's thread when changing state to end... we are that thread!
Modified:
team/file/bridging/main/bridging.c
Modified: team/file/bridging/main/bridging.c
URL: http://svn.digium.com/view/asterisk/team/file/bridging/main/bridging.c?view=diff&rev=79140&r1=79139&r2=79140
==============================================================================
--- team/file/bridging/main/bridging.c (original)
+++ team/file/bridging/main/bridging.c Fri Aug 10 19:15:44 2007
@@ -379,8 +379,8 @@
struct ast_frame *frame = NULL;
/* Try to read in a frame, if this fails it means they hungup */
if (!(frame = ast_read(chan)) || (frame->frametype == AST_FRAME_CONTROL && frame->subclass == AST_CONTROL_HANGUP)) {
- /* Switch the bridged channel state to end and signal it's thread */
- ast_bridge_change_state(bridge_channel, AST_BRIDGE_CHANNEL_STATE_END);
+ /* Switch the bridged channel state to end, no need to signal it's thread... we are it! */
+ bridge_channel->state = AST_BRIDGE_CHANNEL_STATE_END;
} else {
/* Write out the frame to the bridge technology */
bridge->technology->write(bridge, bridge_channel, frame);
More information about the asterisk-commits
mailing list