mirror of https://github.com/status-im/nim-eth.git
NAT: move setControlCHook() outside the library
This commit is contained in:
parent
93637fa060
commit
a1a285c290
|
@ -225,10 +225,3 @@ proc redirectPorts*(tcpPort, udpPort: Port, description: string): Option[(Port,
|
|||
# atexit() in disguise
|
||||
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