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

Peer.run was discarding the reason for disconnection sent to the disc
channel by Disconnect.
pull/16713/head
Guilherme Salgado 7 years ago committed by Felix Lange
parent ba975dc093
commit c60f6f6214
  1. 1
      p2p/peer.go

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

Loading…
Cancel
Save