Do not wait the bridge when destroying the codex node

This commit is contained in:
Arnaud 2025-10-24 15:01:27 +02:00
parent 0d21a16908
commit 7a23643e30
No known key found for this signature in database
GPG Key ID: B8FBC178F10CA7AE
2 changed files with 2 additions and 3 deletions

View File

@ -488,10 +488,9 @@ func (node CodexNode) Destroy() error {
}
if C.cGoCodexDestroy(node.ctx, bridge.resp) != C.RET_OK {
return bridge.callError("cGoCodexDestroy")
return errors.New("Failed to destroy the codex node.")
}
_, err = bridge.wait()
return err
}

View File

@ -270,7 +270,7 @@ proc codex_destroy(
let res = codex_context.destroyCodexContext(ctx)
if res.isErr:
return callback.error(res.error, userData)
return RET_ERR
return RET_OK