fix: add callback call to storage_destroy to keep consistency

This commit is contained in:
gmega 2026-02-05 15:42:15 -03:00
parent 1a7cf2d335
commit b70c760368
No known key found for this signature in database
GPG Key ID: 6290D34EAD824B18

View File

@ -274,11 +274,12 @@ proc storage_destroy(
initializeLibrary()
checkLibstorageParams(ctx, callback, userData)
let res = storage_context.destroyStorageContext(ctx)
if res.isErr:
return RET_ERR
let
res = storage_context.destroyStorageContext(ctx)
ret = if res.isErr: RET_ERR else: RET_OK
return RET_OK
callback(ret, nil, 0, userData)
return ret
proc storage_upload_init(
ctx: ptr StorageContext,