assert queueLen at the point where it'll be easier track why it's overgrowing

This commit is contained in:
Eric House 2013-07-05 21:32:41 -07:00
parent 232b27e06a
commit bbac923f68

View file

@ -1065,6 +1065,8 @@ addToQueue( CommsCtxt* comms, MsgQueueElem* newMsgElem )
XP_ASSERT( comms->queueLen > 0 );
}
++comms->queueLen;
XP_ASSERT( comms->queueLen <= 128 ); /* reasonable limit in testing */
printQueue( comms );
} /* addToQueue */
#ifdef DEBUG