From 2935ee1a1d94ed2a800de57a82e30c712f4e1838 Mon Sep 17 00:00:00 2001 From: LoveIsGrief Date: Sat, 25 Jan 2020 14:49:59 +0100 Subject: [PATCH] Remove unnecessary executor It was doing nothing but starting and stopping --- .../main/groovy/com/muwire/core/files/PersisterService.groovy | 4 ---- 1 file changed, 4 deletions(-) diff --git a/core/src/main/groovy/com/muwire/core/files/PersisterService.groovy b/core/src/main/groovy/com/muwire/core/files/PersisterService.groovy index 31b3b610..272ff937 100644 --- a/core/src/main/groovy/com/muwire/core/files/PersisterService.groovy +++ b/core/src/main/groovy/com/muwire/core/files/PersisterService.groovy @@ -19,9 +19,6 @@ class PersisterService extends BasePersisterService { final int interval final Timer timer final FileManager fileManager - final ExecutorService persisterExecutor = Executors.newSingleThreadExecutor({ r -> - new Thread(r, "file persister") - } as ThreadFactory) PersisterService(File location, EventBus listener, int interval, FileManager fileManager) { this.location = location @@ -33,7 +30,6 @@ class PersisterService extends BasePersisterService { void stop() { timer.cancel() - persisterExecutor.shutdown() } void onUILoadedEvent(UILoadedEvent e) {