Fix: unchoke now sent after Bitfield properly, not before
This commit is contained in:
parent
3f014ee80a
commit
b60850946e
2 changed files with 6 additions and 3 deletions
|
|
@ -892,8 +892,6 @@ impl<'a> PeerConnectionHandler for &'a PeerHandler {
|
|||
|
||||
fn on_handshake<B>(&self, handshake: Handshake<B>) -> anyhow::Result<()> {
|
||||
self.state.set_peer_live(self.addr, handshake);
|
||||
self.tx
|
||||
.send(WriterRequest::Message(MessageOwned::Unchoke))?;
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue