forked from Mirrors/freeswitch
Wed Feb 11 15:01:08 CST 2009 Della Betta Filippo <filippo DOT dellabetta AT telecomitalia DOT it>
* tport.c: fixed tport_queuelen() when queue is full git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11942 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
c27cb514a9
commit
613a5ebf86
@ -1 +1 @@
|
||||
Thu Feb 12 15:07:42 CST 2009
|
||||
Thu Feb 12 15:08:17 CST 2009
|
||||
|
@ -3734,7 +3734,7 @@ isize_t tport_queuelen(tport_t const *self)
|
||||
if (self && self->tp_queue) {
|
||||
unsigned short i, N = self->tp_params->tpp_qsize;
|
||||
|
||||
for (i = self->tp_qhead; self->tp_queue[i]; i = (i + 1) % N)
|
||||
for (i = self->tp_qhead; self->tp_queue[i] && retval < N; i = (i + 1) % N)
|
||||
retval++;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user