From bbac923f6894baa3b3ee998648f6f3c765695d26 Mon Sep 17 00:00:00 2001 From: Eric House Date: Fri, 5 Jul 2013 21:32:41 -0700 Subject: [PATCH] assert queueLen at the point where it'll be easier track why it's overgrowing --- xwords4/common/comms.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xwords4/common/comms.c b/xwords4/common/comms.c index 3f5412706..4835842c2 100644 --- a/xwords4/common/comms.c +++ b/xwords4/common/comms.c @@ -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