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:
parent
50b19ce0b0
commit
2abb222171
1 changed files with 3 additions and 1 deletions
|
@ -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…
Reference in a new issue