From 5d39cb7f40592584a87c54df4e4496afa7228656 Mon Sep 17 00:00:00 2001 From: M66B Date: Sat, 8 Sep 2018 11:05:25 +0000 Subject: [PATCH] Small improvement --- app/src/main/java/eu/faircode/email/ServiceSynchronize.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/ServiceSynchronize.java b/app/src/main/java/eu/faircode/email/ServiceSynchronize.java index afc76fab..cfc195e1 100644 --- a/app/src/main/java/eu/faircode/email/ServiceSynchronize.java +++ b/app/src/main/java/eu/faircode/email/ServiceSynchronize.java @@ -808,8 +808,10 @@ public class ServiceSynchronize extends LifecycleService { t.start(); try { t.join(STORE_CLOSE_TIMEOUT); + if (t.isAlive()) + Log.w(Helper.TAG, account.name + " Close timeout"); } catch (InterruptedException ex) { - Log.w(Helper.TAG, account.name + " Close timeout"); + Log.w(Helper.TAG, account.name + " close wait " + ex.toString()); t.interrupt(); } } finally {