mirror of https://github.com/status-im/nim-eth.git
workaround for https://github.com/nim-lang/Nim/issues/4057
This commit is contained in:
parent
7ec1433b01
commit
d0d09559b8
|
@ -224,3 +224,10 @@ proc redirectPorts*(tcpPort, udpPort: Port, description: string): Option[(Port,
|
||||||
# atexit() in disguise
|
# atexit() in disguise
|
||||||
addQuitProc(stopNatThread)
|
addQuitProc(stopNatThread)
|
||||||
|
|
||||||
|
# workaround for https://github.com/nim-lang/Nim/issues/4057
|
||||||
|
when defined(windows):
|
||||||
|
proc handler() {.noconv.} =
|
||||||
|
setupForeignThreadGc()
|
||||||
|
quit(1)
|
||||||
|
setControlCHook(handler)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue