fix: unregistering node when destroying (#49)

This commit is contained in:
gabrielmer 2025-03-11 15:05:35 +02:00 committed by GitHub
parent b33e5b5431
commit 8051e17fab
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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
}