Fix bugs
This commit is contained in:
parent
951f610cfd
commit
1cd6caee76
6 changed files with 31 additions and 18 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue