This commit is contained in:
Igor Katson 2021-07-13 13:16:59 +01:00
parent 951f610cfd
commit 1cd6caee76
6 changed files with 31 additions and 18 deletions

View file

@ -422,7 +422,7 @@ impl TorrentState {
let mut g = self.locked.write();
match g.peers.states.get_mut(&handle) {
Some(s @ &mut PeerState::Connecting) => {
*s = PeerState::Live(LivePeerState::new(h.peer_id));
*s = PeerState::Live(LivePeerState::new(Id20(h.peer_id)));
}
_ => {
warn!("peer {} was in wrong state", handle);