Changeset 5021
Fixed another error in cw_spy_get_frames().
Make sure the frames we return are not still connected to the rest of the
spy queues.
Committed by:
karvan
Date:
Jul 01 2008 * 15:37 (6 months ago)
Affected files:
callweaver/trunk/corelib/channel.c (unified diff)
| r5019 | r5021 | |
|---|---|---|
| 1177 | 1177 | spy->queue[0].count -= same; |
| 1178 | 1178 | if (spy->queue[0].count == 0) |
| 1179 | 1179 | spy->queue[0].tail = NULL; |
| 1180 | f->next = NULL; | |
| 1180 | 1181 | f = spy->queue[1].head; |
| 1181 | 1182 | for (ii = 1; ii < same; ++ii) |
| 1182 | 1183 | f = f->next; |
| --- | --- | |
| 1185 | 1186 | spy->queue[1].count -= same; |
| 1186 | 1187 | if (spy->queue[1].count == 0) |
| 1187 | 1188 | spy->queue[1].tail = NULL; |
| 1189 | f->next = NULL; | |
| 1188 | 1190 | } |
| 1189 | 1191 | cw_mutex_unlock(&spy->lock); |
| 1190 | 1192 | } |
![Home changeset 5021 [home]](/images/logo.png?1180520111)
RSS Feeds