mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-23 23:06:39 +01:00
Map shutdown call from sig int handler to userThread
This commit is contained in:
parent
380a57a37a
commit
5943845891
1 changed files with 4 additions and 4 deletions
|
@ -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…
Add table
Reference in a new issue