Fix a bug with sending interested
This commit is contained in:
parent
bc43963ad2
commit
5e238419f4
1 changed files with 3 additions and 3 deletions
|
|
@ -1176,11 +1176,11 @@ impl PeerHandler {
|
|||
self.tx.send(WriterRequest::Disconnect)?;
|
||||
return Ok(());
|
||||
}
|
||||
} else {
|
||||
self.tx
|
||||
.send(WriterRequest::Message(MessageOwned::Interested))?;
|
||||
}
|
||||
|
||||
self.tx
|
||||
.send(WriterRequest::Message(MessageOwned::Interested))?;
|
||||
|
||||
loop {
|
||||
self.wait_for_unchoke().await;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue