macOS fix
This commit is contained in:
parent
06ab21e8c5
commit
50095ae22f
|
@ -46,11 +46,12 @@ proc start() =
|
|||
nimbus.state = Starting
|
||||
|
||||
## Ctrl+C handling
|
||||
proc handler() {.noconv.} =
|
||||
proc controlCHandler() {.noconv.} =
|
||||
when defined(windows):
|
||||
# workaround for https://github.com/nim-lang/Nim/issues/4057
|
||||
setupForeignThreadGc()
|
||||
nimbus.state = Stopping
|
||||
setControlCHook(handler)
|
||||
setControlCHook(controlCHandler)
|
||||
|
||||
## logging
|
||||
setLogLevel(conf.debug.logLevel)
|
||||
|
|
Loading…
Reference in New Issue