libwaku waku_destroy should invoke callback when success

This commit is contained in:
Ivan Folgueira Bande 2024-12-19 22:56:26 +01:00
parent 1fa916589d
commit 243d466aa7
No known key found for this signature in database
GPG Key ID: 3C117481F89E24A7

View File

@ -162,6 +162,8 @@ proc waku_destroy(
callback(RET_ERR, unsafeAddr msg[0], cast[csize_t](len(msg)), userData)
return RET_ERR
let msg = "correctly destroyed"
callback(RET_OK, unsafeAddr msg[0], cast[csize_t](len(msg)), userData)
return RET_OK
proc waku_version(