mirror of
https://github.com/logos-storage/logos-storage-nim.git
synced 2026-01-08 08:23:07 +00:00
fix compilation error
This commit is contained in:
parent
c93694ac36
commit
05fae04db6
@ -122,8 +122,9 @@ method stop*(
|
||||
await node.trackedFutures.cancelTracked()
|
||||
if not node.process.isNil:
|
||||
trace "terminating node process..."
|
||||
var exitCode = -1
|
||||
try:
|
||||
let exitCode = await noCancel node.process.terminateAndWaitForExit(2.seconds)
|
||||
exitCode = await noCancel node.process.terminateAndWaitForExit(2.seconds)
|
||||
if exitCode > 0 and exitCode != 143 and # 143 = SIGTERM (initiated above)
|
||||
exitCode != expectedErrCode:
|
||||
warn "process exited with a non-zero exit code", exitCode
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user