Merge branch 'ctrlc' into devel

This commit is contained in:
Ștefan Talpalaru 2019-07-23 14:02:26 +02:00
commit 0c7bc7f048
No known key found for this signature in database
GPG Key ID: CBF7934204F1B6F9
1 changed files with 1 additions and 0 deletions

View File

@ -51,6 +51,7 @@ proc start() =
# workaround for https://github.com/nim-lang/Nim/issues/4057
setupForeignThreadGc()
nimbus.state = Stopping
echo "\nCtrl+C pressed. Waiting for a graceful shutdown."
setControlCHook(controlCHandler)
## logging