diff --git a/p2p/transport/quic/listener.go b/p2p/transport/quic/listener.go index 78fd001186..017189cb69 100644 --- a/p2p/transport/quic/listener.go +++ b/p2p/transport/quic/listener.go @@ -96,7 +96,7 @@ func (l *listener) setupConn(qconn quic.Connection) (*conn, error) { c, err := l.setupConnWithScope(qconn, connScope, remoteMultiaddr) if err != nil { connScope.Done() - qconn.CloseWithError(1, err.Error()) + qconn.CloseWithError(1, "") return nil, err }