Consider new and terminated threads as finished

pull/194/merge
M66B 3 years ago
parent 50b19ce0b0
commit 2abb222171

@ -5531,7 +5531,9 @@ class Core {
// https://docs.oracle.com/javase/7/docs/api/java/lang/Thread.State.html
Thread.State state = thread.getState();
if (thread.isAlive()) {
if (thread.isAlive() &&
state != Thread.State.NEW &&
state != Thread.State.TERMINATED) {
Log.e("Join " + name + " failed" +
" state=" + state + " interrupted=" + interrupted);
if (interrupted)

Loading…
Cancel
Save