diff --git a/app/src/main/java/eu/faircode/email/SimpleTask.java b/app/src/main/java/eu/faircode/email/SimpleTask.java index da6f3be556..e15c1ca0d7 100644 --- a/app/src/main/java/eu/faircode/email/SimpleTask.java +++ b/app/src/main/java/eu/faircode/email/SimpleTask.java @@ -51,7 +51,7 @@ public abstract class SimpleTask implements LifecycleObserver { private Bundle args = null; private Result stored = null; - private ExecutorService executor = Executors.newFixedThreadPool(10, new ThreadFactory() { + private ExecutorService executor = Executors.newCachedThreadPool(new ThreadFactory() { @Override public Thread newThread(@NonNull Runnable runnable) { Thread thread = new Thread(runnable);