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

Florian Reimair notifications at github.com
Wed Mar 11 15:09:59 UTC 2020


freimair 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 ")

copy and paste... my bad

-- 
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#discussion_r391041594
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bisq.network/pipermail/bisq-github/attachments/20200311/361a36fd/attachment.html>


More information about the bisq-github mailing list