fix: unregistering node when destroying

This commit is contained in:
Gabriel mermelstein 2025-03-11 14:12:04 +02:00
parent b33e5b5431
commit 5106803d95
No known key found for this signature in database
GPG Key ID: 82B8134785FEAE0D

View File

@ -997,6 +997,7 @@ func (n *WakuNode) Destroy() error {
wg.Wait()
if C.getRet(resp) == C.RET_OK {
unregisterNode(n)
Debug("Successfully destroyed %s", n.nodeName)
return nil
}