mirror of
https://github.com/codex-storage/nim-libp2p.git
synced 2025-01-12 03:54:06 +00:00
Attempt #2 to fix Appveyor CI freeze.
This commit is contained in:
parent
660888e7dc
commit
5a45944489
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user