mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-16 15:41:16 +01:00
resendAll on REconnect as well as connect since it doesn't otherwise
seem to get done.
This commit is contained in:
parent
47f74ceef7
commit
9b955ae770
1 changed files with 5 additions and 4 deletions
|
@ -1141,10 +1141,11 @@ relayPreProcess( CommsCtxt* comms, XWStreamCtxt* stream, XWHostID* senderID )
|
||||||
/* We're [re-]connected now. Send any pending messages. This may
|
/* 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
|
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
|
proc now. But don't resend if we were previously REconnected, as
|
||||||
we'll have sent then. */
|
we'll have sent then. -- I don't see any send on RECONNECTED, so
|
||||||
if ( COMMS_RELAYSTATE_RECONNECTED != comms->r.relayState ) {
|
removing the test for now to fix recon problems on android. */
|
||||||
comms_resendAll( comms );
|
/* if ( COMMS_RELAYSTATE_RECONNECTED != comms->r.relayState ) { */
|
||||||
}
|
comms_resendAll( comms );
|
||||||
|
/* } */
|
||||||
if ( XWRELAY_ALLHERE == cmd ) { /* initial connect? */
|
if ( XWRELAY_ALLHERE == cmd ) { /* initial connect? */
|
||||||
(*comms->procs.rconnd)( comms->procs.closure, XP_TRUE, 0 );
|
(*comms->procs.rconnd)( comms->procs.closure, XP_TRUE, 0 );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue