From 18973675d026740751141431359d1186314decdf Mon Sep 17 00:00:00 2001 From: Eric House Date: Fri, 27 Jan 2023 21:07:39 -0800 Subject: [PATCH] don't send invite from inside comms_invite() --- xwords4/common/comms.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/xwords4/common/comms.c b/xwords4/common/comms.c index 270714d9e..93809a75f 100644 --- a/xwords4/common/comms.c +++ b/xwords4/common/comms.c @@ -1567,7 +1567,11 @@ comms_invite( CommsCtxt* comms, XWEnv xwe, const NetLaunchInfo* nli, elem = addToQueue( comms, xwe, elem ); XP_LOGFF( "added invite on channel %d", elem->channelNo & CHANNEL_MASK ); - sendMsg( comms, xwe, elem, COMMS_CONN_NONE ); + /* Let's not call sendMsg(). On Android creating a game with an + invitation in its queue is always followed by opening the game, + which results in comms_resendAll() getting called leading to a + second send immediately after this. So drop this. */ + // sendMsg( comms, xwe, elem, COMMS_CONN_NONE ); } LOG_RETURN_VOID(); }