From 5943845891e8e82f6215248c791dc328c247782e Mon Sep 17 00:00:00 2001 From: chimp1984 Date: Fri, 23 Oct 2020 00:13:52 -0500 Subject: [PATCH] Map shutdown call from sig int handler to userThread --- common/src/main/java/bisq/common/setup/CommonSetup.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/common/src/main/java/bisq/common/setup/CommonSetup.java b/common/src/main/java/bisq/common/setup/CommonSetup.java index df3280aae7..f2fac170fc 100644 --- a/common/src/main/java/bisq/common/setup/CommonSetup.java +++ b/common/src/main/java/bisq/common/setup/CommonSetup.java @@ -102,13 +102,13 @@ public class CommonSetup { protected static void setupSigIntHandlers(GracefulShutDownHandler gracefulShutDownHandler) { Signal.handle(new Signal("INT"), signal -> { - gracefulShutDownHandler.gracefulShutDown(() -> { - }); + UserThread.execute(() -> gracefulShutDownHandler.gracefulShutDown(() -> { + })); }); Signal.handle(new Signal("TERM"), signal -> { - gracefulShutDownHandler.gracefulShutDown(() -> { - }); + UserThread.execute(() -> gracefulShutDownHandler.gracefulShutDown(() -> { + })); }); }