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:
Andy2 2011-03-04 07:19:06 -08:00
parent b085540ee3
commit abdabd9c3c

View file

@ -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() );
}