check if the idle-thread is alive before giving up to start one

This commit is contained in:
B. Petersen
2018-06-04 15:25:12 +02:00
parent 9ad5e88f21
commit 80723477ca
@@ -302,7 +302,7 @@ public class ApplicationLoader extends Application {
public static void startIdleThread()
{
synchronized (s_idleThreadCritical) {
if (s_idleThread != null) {
if (s_idleThread != null && s_idleThread.isAlive()) {
Log.i("DeltaChat", "Idle thread already started.");
return;
}