Map shutdown call from sig int handler to userThread

This commit is contained in:
chimp1984 2020-10-23 00:13:52 -05:00
parent 380a57a37a
commit 5943845891
No known key found for this signature in database
GPG Key ID: 9801B4EC591F90E3

View File

@ -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(() -> {
}));
});
}