From c725c96609074c948f4ec559dcb10616e26d4c71 Mon Sep 17 00:00:00 2001 From: Ivan FB <128452529+Ivansete-status@users.noreply.github.com> Date: Fri, 3 Jan 2025 16:13:26 +0100 Subject: [PATCH] libwaku invoke callback within waku_destroy (#3228) --- library/libwaku.nim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/library/libwaku.nim b/library/libwaku.nim index 51e6db7b9..745937291 100644 --- a/library/libwaku.nim +++ b/library/libwaku.nim @@ -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(