mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-19 01:41:11 +01:00
Map shutdown call from sig int handler to userThread
This commit is contained in:
parent
380a57a37a
commit
5943845891
@ -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(() -> {
|
||||
}));
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user