From a1a285c290d97512c2c5adcaf97865b010b6f31b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C8=98tefan=20Talpalaru?= Date: Thu, 11 Jul 2019 03:47:44 +0200 Subject: [PATCH] NAT: move setControlCHook() outside the library --- eth/net/nat.nim | 7 ------- 1 file changed, 7 deletions(-) diff --git a/eth/net/nat.nim b/eth/net/nat.nim index 60ba77d..9e79629 100644 --- a/eth/net/nat.nim +++ b/eth/net/nat.nim @@ -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) -