Skip to content
This repository has been archived by the owner on Apr 19, 2024. It is now read-only.

Commit

Permalink
fix another leak
Browse files Browse the repository at this point in the history
  • Loading branch information
miparnisari committed Feb 26, 2024
1 parent e37a3fe commit b218cbe
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions global.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
}
}

0 comments on commit b218cbe

Please sign in to comment.