fix compilation error

This commit is contained in:
Eric 2025-03-21 11:37:02 +11:00
parent c93694ac36
commit 05fae04db6
No known key found for this signature in database

View File

@ -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