diff --git a/common/src/main/java/bisq/common/util/Utilities.java b/common/src/main/java/bisq/common/util/Utilities.java index 30e0e7a05f..87125850fe 100644 --- a/common/src/main/java/bisq/common/util/Utilities.java +++ b/common/src/main/java/bisq/common/util/Utilities.java @@ -63,7 +63,6 @@ import java.util.concurrent.BlockingQueue; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; -import java.util.concurrent.ScheduledThreadPoolExecutor; import java.util.concurrent.ThreadFactory; import java.util.concurrent.ThreadPoolExecutor; import java.util.concurrent.TimeUnit; @@ -144,9 +143,9 @@ public class Utilities { return executor; } - public static void shutdownAndAwaitTermination(ExecutorService executor, long timeout, TimeUnit unit) { + public static boolean shutdownAndAwaitTermination(ExecutorService executor, long timeout, TimeUnit unit) { //noinspection UnstableApiUsage - MoreExecutors.shutdownAndAwaitTermination(executor, timeout, unit); + return MoreExecutors.shutdownAndAwaitTermination(executor, timeout, unit); } public static FutureCallback failureCallback(Consumer errorHandler) {