diff --git a/p2p/discover/portal_protocol.go b/p2p/discover/portal_protocol.go index a1b32fc15dc0..c59c268f741b 100644 --- a/p2p/discover/portal_protocol.go +++ b/p2p/discover/portal_protocol.go @@ -265,6 +265,7 @@ func (p *PortalProtocol) Start() error { func (p *PortalProtocol) Stop() { p.cancelCloseCtx() p.table.close() + p.DiscV5.Close() err := p.utp.Close() if err != nil { p.Log.Error("failed to close utp listener", "err", err)