From 546353526553873f9093ba838e74df181ce03be0 Mon Sep 17 00:00:00 2001 From: Eric House Date: Wed, 14 Nov 2012 05:42:47 -0800 Subject: [PATCH] don't increase backoff if there wasn't actually anything to send. --- xwords4/common/comms.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xwords4/common/comms.c b/xwords4/common/comms.c index e43c0c191..4e7bcb387 100644 --- a/xwords4/common/comms.c +++ b/xwords4/common/comms.c @@ -1263,9 +1263,9 @@ comms_resendAll( CommsCtxt* comms, XP_Bool force ) XP_LOGF( "%s: aborting: %ld seconds left in backoff", __func__, comms->nextResend - now ); success = XP_FALSE; - } else { - MsgQueueElem* msg; + } else if ( !!comms->msgQueueHead ) { + MsgQueueElem* msg; for ( msg = comms->msgQueueHead; !!msg; msg = msg->next ) { if ( 0 > sendMsg( comms, msg ) ) {