packet pool: turn bad check into BUG_ON

pull/1912/head
Victor Julien 10 years ago
parent c8399e8c51
commit 3ac1468c1b

@ -175,12 +175,11 @@ Packet *PacketDequeue (PacketQueue *q)
/* pull the bottom packet from the queue */
p = q->bot;
/* Weird issue: sometimes it looks that two thread arrive
* here at the same time so the bot ptr is NULL (only on OS X?)
*/
if (p == NULL) {
return NULL;
}
BUG_ON (p == NULL);
/* more packets in queue */
if (q->bot->prev != NULL) {

Loading…
Cancel
Save