Prevent crash

This commit is contained in:
M66B
2019-01-10 13:56:53 +00:00
parent 7e558d01bb
commit 247d26a394

View File

@@ -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";