[bisq-network/bisq] Added graceful shutdown hook (#4047)

Christoph Atteneder notifications at github.com
Wed Mar 11 15:08:31 UTC 2020


ripcurlx commented on this pull request.



> @@ -100,6 +101,12 @@ protected void doExecute() {
         CoreSetup.setup(config);
         addCapabilities();
 
+        // exit gracefully on shutdown
+        Runtime.getRuntime().addShutdownHook(new Thread(() -> {
+                    gracefulShutDown(() -> log.info("gracefulShutDown complete"));
+                }, "Monitor Shutdown Hook ")

Is there a reason why you labeled it `Monitor Shutdown Hook `?
```suggestion
                }, "BisqExecutable Shutdown Hook")
```

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/bisq-network/bisq/pull/4047#pullrequestreview-372848536
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bisq.network/pipermail/bisq-github/attachments/20200311/fb90ce0b/attachment-0001.html>


More information about the bisq-github mailing list