mirror of
https://github.com/waku-org/nwaku.git
synced 2025-01-25 22:29:20 +00:00
libwaku invoke callback within waku_destroy (#3228)
This commit is contained in:
parent
b956d0b408
commit
04a5355631
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user