From f382f17d20744c691676c3c309e1b12555300846 Mon Sep 17 00:00:00 2001 From: Andy2 Date: Thu, 24 Feb 2011 17:33:10 -0800 Subject: [PATCH] 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. --- xwords4/android/XWords4/jni/xwjni.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/xwords4/android/XWords4/jni/xwjni.c b/xwords4/android/XWords4/jni/xwjni.c index bc497d508..c55e983e0 100644 --- a/xwords4/android/XWords4/jni/xwjni.c +++ b/xwords4/android/XWords4/jni/xwjni.c @@ -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 );