From 5a4594448976db0de6279cad98607f53947acd77 Mon Sep 17 00:00:00 2001 From: cheatfate Date: Thu, 22 Aug 2019 08:56:36 +0300 Subject: [PATCH] Attempt #2 to fix Appveyor CI freeze. --- libp2p/daemon/daemonapi.nim | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libp2p/daemon/daemonapi.nim b/libp2p/daemon/daemonapi.nim index da003dc..29f4576 100644 --- a/libp2p/daemon/daemonapi.nim +++ b/libp2p/daemon/daemonapi.nim @@ -776,7 +776,10 @@ proc close*(api: DaemonAPI) {.async.} = api.servers.setLen(0) # Closing daemon's process. if NoProcessCtrl in api.flags: - api.process.terminate() + when defined(windows): + api.process.kill() + else: + api.process.terminate() discard api.process.waitForExit() # Attempt to delete unix socket endpoint. let address = initTAddress(api.address)