fix(p2p): don't discard reason sent by Disconnect() #16559 (#2009)

This commit is contained in:
Daniel Liu 2026-02-10 19:20:37 +08:00 committed by GitHub
parent 4f7159b119
commit 7dc82dde0f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -224,6 +224,7 @@ loop:
reason = discReasonForError(err) reason = discReasonForError(err)
break loop break loop
case err = <-p.disc: case err = <-p.disc:
reason = discReasonForError(err)
break loop break loop
} }
} }