From 4b1faec5f470c3b24efab902c6fb6251c47e4394 Mon Sep 17 00:00:00 2001 From: Eric House Date: Thu, 29 Aug 2024 15:40:27 -0700 Subject: [PATCH] set ack timer to 5 seconds instead of 7.5 --- xwords4/common/device.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/xwords4/common/device.c b/xwords4/common/device.c index c5052dc02..92664c997 100644 --- a/xwords4/common/device.c +++ b/xwords4/common/device.c @@ -43,6 +43,10 @@ #define PD_VERSION_1 2 +#ifndef ACK_TIMER_INTERVAL_MS +# define ACK_TIMER_INTERVAL_MS 5000 +#endif + XWStreamCtxt* mkStream( XW_DUtilCtxt* dutil ) { @@ -575,9 +579,9 @@ static void setAckSendTimerLocked( XW_DUtilCtxt* dutil, XWEnv xwe, DevCtxt* dc ) { if ( 0 == dc->ackTimer.key ) { - XP_U32 inWhenMS = 7500; - dc->ackTimer.key = tmr_set( dutil, xwe, inWhenMS, onAckSendTimer, - dutil ); + dc->ackTimer.key = tmr_set( dutil, xwe, + ACK_TIMER_INTERVAL_MS, + onAckSendTimer, dutil ); XP_ASSERT( 0 != dc->ackTimer.key ); } }