mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-31 19:57:06 +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();
|
lock.unlock();
|
||||||
} else {
|
} else {
|
||||||
DbgUtils.logw( TAG,
|
JNIThread jniThread = JNIThread.getRetained( rowid, false );
|
||||||
"ResendTask.doInBackground: unable to unlock %d",
|
if ( null != jniThread ) {
|
||||||
rowid );
|
jniThread.handle( JNIThread.JNICmd.CMD_RESEND, false,
|
||||||
|
false, false );
|
||||||
|
jniThread.release();
|
||||||
|
} else {
|
||||||
|
DbgUtils.logw( TAG,
|
||||||
|
"ResendTask.doInBackground: unable to unlock %d",
|
||||||
|
rowid );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
|
|
Loading…
Add table
Reference in a new issue