invoke onNotResponding if failure in destroyFFIContext

This commit is contained in:
Ivan FB 2026-04-24 14:00:26 +02:00
parent 53b91e1354
commit 44aaacccbe
No known key found for this signature in database
GPG Key ID: DF0C67A04C543270

View File

@ -235,8 +235,10 @@ proc destroyFFIContext*[T](ctx: ptr FFIContext[T]): Result[void, string] =
ctx.cleanUpResources()
let signaledOnTime = ctx.reqSignal.fireSync().valueOr:
ctx.onNotResponding()
return err("error in destroyFFIContext: " & $error)
if not signaledOnTime:
ctx.onNotResponding()
return err("failed to signal reqSignal on time in destroyFFIContext")
return ok()