mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-30 08:34:16 +01:00
don't pass timeout value to join() when stopping jni thread. If the
timeout fires there's nothing I can do anyway. So it it take as long as required to exit run(), and if that's too long fix it.
This commit is contained in:
parent
b085540ee3
commit
abdabd9c3c
1 changed files with 6 additions and 1 deletions
|
@ -127,7 +127,12 @@ public class JNIThread extends Thread {
|
|||
m_stopped = true;
|
||||
handle( JNICmd.CMD_NONE ); // tickle it
|
||||
try {
|
||||
join(200); // wait up to 2/10 second
|
||||
// Can't pass timeout to join. There's no way to kill
|
||||
// this thread unless it's doing something interruptable
|
||||
// (like blocking on a socket) so might as well let it
|
||||
// take however log it takes. If that's too long, fix it.
|
||||
join();
|
||||
// Assert.assertFalse( isAlive() );
|
||||
} catch ( java.lang.InterruptedException ie ) {
|
||||
Utils.logf( "got InterruptedException: " + ie.toString() );
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue