Attempt #2 to fix Appveyor CI freeze.

This commit is contained in:
cheatfate 2019-08-22 08:56:36 +03:00
parent 660888e7dc
commit 5a45944489
No known key found for this signature in database
GPG Key ID: 46ADD633A7201F95
1 changed files with 4 additions and 1 deletions

View File

@ -776,6 +776,9 @@ proc close*(api: DaemonAPI) {.async.} =
api.servers.setLen(0) api.servers.setLen(0)
# Closing daemon's process. # Closing daemon's process.
if NoProcessCtrl in api.flags: if NoProcessCtrl in api.flags:
when defined(windows):
api.process.kill()
else:
api.process.terminate() api.process.terminate()
discard api.process.waitForExit() discard api.process.waitForExit()
# Attempt to delete unix socket endpoint. # Attempt to delete unix socket endpoint.