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:
Eric House 2016-12-06 09:03:33 -08:00
parent 2c6ce5c1a8
commit 3d5479565e

View file

@ -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;