1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-01-01 20:54:34 +00:00

Consider new and terminated threads as finished

This commit is contained in:
M66B 2021-11-29 07:43:13 +01:00
parent 50b19ce0b0
commit 2abb222171

View file

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