Commit c60f6f62 authored by Guilherme Salgado's avatar Guilherme Salgado Committed by Felix Lange

p2p: don't discard reason set by Disconnect (#16559)

Peer.run was discarding the reason for disconnection sent to the disc
channel by Disconnect.
parent ba975dc0
...@@ -220,6 +220,7 @@ loop: ...@@ -220,6 +220,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
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment