From bd250cfe1eeb7ae60e1d391a61284b968416edcf Mon Sep 17 00:00:00 2001 From: Eric House Date: Wed, 19 Jul 2017 07:16:18 -0700 Subject: [PATCH] log before asserting --- xwords4/common/comms.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xwords4/common/comms.c b/xwords4/common/comms.c index 997e8d19d..c641fc98e 100644 --- a/xwords4/common/comms.c +++ b/xwords4/common/comms.c @@ -456,7 +456,10 @@ reset_internal( CommsCtxt* comms, XP_Bool isServer, cleanupAddrRecs( comms ); - XP_ASSERT( 0 == comms->nextChannelNo ); /* testing... */ + if ( 0 != comms->nextChannelNo ) { + XP_LOGF( "%s: comms->nextChannelNo: %d", __func__, comms->nextChannelNo ); + } + XP_ASSERT( 0 == comms->nextChannelNo ); /* firing... */ // comms->nextChannelNo = 0; if ( resetRelay ) { comms->channelSeed = 0;