From 9b955ae77073a145e72646bde9e5c04c7e6734de Mon Sep 17 00:00:00 2001 From: eehouse Date: Sun, 28 Mar 2010 16:09:34 +0000 Subject: [PATCH] resendAll on REconnect as well as connect since it doesn't otherwise seem to get done. --- xwords4/common/comms.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/xwords4/common/comms.c b/xwords4/common/comms.c index 8ab71bfbf..d5ff6cbe6 100644 --- a/xwords4/common/comms.c +++ b/xwords4/common/comms.c @@ -1141,10 +1141,11 @@ relayPreProcess( CommsCtxt* comms, XWStreamCtxt* stream, XWHostID* senderID ) /* We're [re-]connected now. Send any pending messages. This may need to be done later since we're inside the platform's socket read proc now. But don't resend if we were previously REconnected, as - we'll have sent then. */ - if ( COMMS_RELAYSTATE_RECONNECTED != comms->r.relayState ) { - comms_resendAll( comms ); - } + we'll have sent then. -- I don't see any send on RECONNECTED, so + removing the test for now to fix recon problems on android. */ + /* if ( COMMS_RELAYSTATE_RECONNECTED != comms->r.relayState ) { */ + comms_resendAll( comms ); + /* } */ if ( XWRELAY_ALLHERE == cmd ) { /* initial connect? */ (*comms->procs.rconnd)( comms->procs.closure, XP_TRUE, 0 ); }