DaoStateStorageService: Don't call executorService.shutdown() twice

MoreExecutors.shutdownAndAwaitTermination(executorService, ...) calls
executorService.shutdown() before starting its force shutdown timer.
This commit is contained in:
Alva Swanson 2023-01-27 15:26:05 +01:00
parent d682d956a1
commit eca9aedaa7
No known key found for this signature in database
GPG key ID: 004760E77F753090

View file

@ -128,7 +128,6 @@ public class DaoStateStorageService extends StoreService<DaoStateStore> {
}
public void shutDown() {
executorService.shutdown();
// noinspection UnstableApiUsage
MoreExecutors.shutdownAndAwaitTermination(executorService, 10, TimeUnit.SECONDS);
}