mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-29 08:34:37 +01:00
make game_receiveMessage return even if server doesn't do anything
with it -- since caller will use the return value to decide whether to save state.
This commit is contained in:
parent
f0d90f0576
commit
f382f17d20
1 changed files with 4 additions and 2 deletions
|
@ -976,8 +976,10 @@ Java_org_eehouse_android_xw4_jni_XwJNI_game_1receiveMessage
|
|||
|
||||
XWStreamCtxt* stream = streamFromJStream( MPPARM(mpool) env, globals->vtMgr,
|
||||
jstream );
|
||||
result = comms_checkIncomingStream( state->game.comms, stream, NULL )
|
||||
&& server_receiveMessage( state->game.server, stream );
|
||||
result = comms_checkIncomingStream( state->game.comms, stream, NULL );
|
||||
if ( result ) {
|
||||
(void)server_receiveMessage( state->game.server, stream );
|
||||
}
|
||||
|
||||
stream_destroy( stream );
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue