[Asterisk-cvs] asterisk channel.c,1.135,1.136
markster at lists.digium.com
markster at lists.digium.com
Tue Aug 31 13:27:21 CDT 2004
Update of /usr/cvsroot/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv32678
Modified Files:
channel.c
Log Message:
When queueing frames, it's pointless to queue a frame after a HANGUP frame is queued...
Index: channel.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channel.c,v
retrieving revision 1.135
retrieving revision 1.136
diff -u -d -r1.135 -r1.136
--- channel.c 27 Aug 2004 22:53:56 -0000 1.135
+++ channel.c 31 Aug 2004 17:30:46 -0000 1.136
@@ -383,6 +383,12 @@
prev = NULL;
cur = chan->pvt->readq;
while(cur) {
+ if ((cur->frametype == AST_FRAME_CONTROL) && (cur->subclass == AST_CONTROL_HANGUP)) {
+ /* Don't bother actually queueing anything after a hangup */
+ ast_frfree(f);
+ ast_mutex_unlock(&chan->lock);
+ return 0;
+ }
prev = cur;
cur = cur->next;
qlen++;
More information about the svn-commits
mailing list