diff --git a/ffi/ffi_context.nim b/ffi/ffi_context.nim index c9f6c71..6cf0a75 100644 --- a/ffi/ffi_context.nim +++ b/ffi/ffi_context.nim @@ -114,7 +114,7 @@ proc watchdogThreadBody(ctx: ptr FFIContext) {.thread.} = # Give time for the node to be created and up before sending watchdog requests. # waitSync returns early if watchdogStopSignal fires (i.e. on destroy). - let startWait = ctx.watchdogStopSignal.waitSync(WatchdogStartDelay) + let stopSignal = ctx.watchdogStopSignal.waitSync(WatchdogStartDelay) if startWait.isErr(): error "watchdog: start-delay waitSync failed", error = startWait.error elif startWait.get():