From 247d26a394461c057f67646b15b66d898926353d Mon Sep 17 00:00:00 2001 From: M66B Date: Thu, 10 Jan 2019 13:56:53 +0000 Subject: [PATCH] Prevent crash --- app/src/main/java/eu/faircode/email/DB.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/DB.java b/app/src/main/java/eu/faircode/email/DB.java index 82cbba742c..aa58cfeed1 100644 --- a/app/src/main/java/eu/faircode/email/DB.java +++ b/app/src/main/java/eu/faircode/email/DB.java @@ -81,7 +81,7 @@ public abstract class DB extends RoomDatabase { public abstract DaoLog log(); private static DB sInstance; - private static ExecutorService executor = Executors.newCachedThreadPool(Helper.backgroundThreadFactory); + private static ExecutorService executor = Executors.newSingleThreadExecutor(Helper.backgroundThreadFactory); private static final String DB_NAME = "fairemail";