diff --git a/app/src/main/java/eu/faircode/email/DB.java b/app/src/main/java/eu/faircode/email/DB.java index 97fa897316..17e6d3770d 100644 --- a/app/src/main/java/eu/faircode/email/DB.java +++ b/app/src/main/java/eu/faircode/email/DB.java @@ -89,7 +89,7 @@ public abstract class DB extends RoomDatabase { public abstract DaoLog log(); private static DB sInstance; - private static ExecutorService executor = Executors.newSingleThreadExecutor(Helper.backgroundThreadFactory); + private static ExecutorService executor = Executors.newCachedThreadPool(Helper.backgroundThreadFactory); private static final String DB_NAME = "fairemail";