mirror of
https://github.com/logos-storage/logos-storage-nim.git
synced 2026-01-05 06:53:06 +00:00
Do not wait the bridge when destroying the codex node
This commit is contained in:
parent
0d21a16908
commit
7a23643e30
@ -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
|
||||
}
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user