remove redundant call to close

This commit is contained in:
gmega 2026-02-05 15:55:34 -03:00
parent 607fb8d5f8
commit 159aeb531d
No known key found for this signature in database
GPG Key ID: 6290D34EAD824B18

View File

@ -229,13 +229,7 @@ int e_storage_close(STORAGE_NODE node) {
int e_storage_destroy(STORAGE_NODE node) {
if (!node)
return RET_ERR;
// Close first (tolerate failure)
resp *r = resp_alloc();
call_wait(storage_close(node, (StorageCallback) on_complete, r), r, NULL);
// Destroy
r = resp_alloc();
return call_wait(storage_destroy(node, (StorageCallback) on_complete, r), r, NULL);
}