libwaku invoke callback within waku_destroy (#3228)

This commit is contained in:
Ivan FB 2025-01-03 16:13:26 +01:00 committed by GitHub
parent b956d0b408
commit 04a5355631
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -195,6 +195,9 @@ proc waku_destroy(
callback(RET_ERR, unsafeAddr msg[0], cast[csize_t](len(msg)), userData)
return RET_ERR
## always need to invoke the callback although we don't retrieve value to the caller
callback(RET_OK, nil, 0, userData)
return RET_OK
proc waku_version(