mirror of
https://github.com/logos-messaging/nim-ffi.git
synced 2026-05-07 10:49:28 +00:00
Update ffi/ffi_context.nim
Co-authored-by: Gabriel Cruz <8129788+gmelodie@users.noreply.github.com>
This commit is contained in:
parent
98d889c0f9
commit
9e4943f73e
@ -305,9 +305,9 @@ proc signalStop*[T](ctx: ptr FFIContext[T]): Result[void, string] =
|
||||
ctx.onNotResponding()
|
||||
return err("failed to signal reqSignal on time in destroyFFIContext")
|
||||
let wdSignaled = ctx.watchdogStopSignal.fireSync().valueOr:
|
||||
return err("error signaling watchdogStopSignal in destroyFFIContext: " & $error)
|
||||
return err("error signaling stopSignal in destroyFFIContext: " & $error)
|
||||
if not wdSignaled:
|
||||
return err("failed to signal watchdogStopSignal on time in destroyFFIContext")
|
||||
return err("failed to signal stopSignal on time in destroyFFIContext")
|
||||
return ok()
|
||||
|
||||
proc joinFFIThreads*[T](ctx: ptr FFIContext[T]) =
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user