mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-18 22:26:30 +01:00
wifi: send for open game too
In handling resend for a newly available transport, if the lock can't be obtained see if that's because the game's currently open and if so post to its thread.
This commit is contained in:
parent
2c6ce5c1a8
commit
3d5479565e
1 changed files with 10 additions and 3 deletions
|
@ -1308,9 +1308,16 @@ public class GameUtils {
|
|||
}
|
||||
lock.unlock();
|
||||
} else {
|
||||
DbgUtils.logw( TAG,
|
||||
"ResendTask.doInBackground: unable to unlock %d",
|
||||
rowid );
|
||||
JNIThread jniThread = JNIThread.getRetained( rowid, false );
|
||||
if ( null != jniThread ) {
|
||||
jniThread.handle( JNIThread.JNICmd.CMD_RESEND, false,
|
||||
false, false );
|
||||
jniThread.release();
|
||||
} else {
|
||||
DbgUtils.logw( TAG,
|
||||
"ResendTask.doInBackground: unable to unlock %d",
|
||||
rowid );
|
||||
}
|
||||
}
|
||||
}
|
||||
return null;
|
||||
|
|
Loading…
Reference in a new issue