From b218cbeb3320aac5fa765e8e01688f28aa12c67f Mon Sep 17 00:00:00 2001 From: Maria Ines Parnisari Date: Mon, 26 Feb 2024 12:22:25 -0300 Subject: [PATCH] fix another leak --- global.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/global.go b/global.go index 5301be54..1dbd44ca 100644 --- a/global.go +++ b/global.go @@ -263,4 +263,7 @@ func (gm *globalManager) broadcastPeers(ctx context.Context, updates map[string] func (gm *globalManager) Close() { gm.wg.Stop() + for _, peer := range gm.instance.GetPeerList() { + _ = peer.Shutdown(context.Background()) + } }