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)?;
|
self.tx.send(WriterRequest::Disconnect)?;
|
||||||
return Ok(());
|
return Ok(());
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
self.tx
|
||||||
|
.send(WriterRequest::Message(MessageOwned::Interested))?;
|
||||||
}
|
}
|
||||||
|
|
||||||
self.tx
|
|
||||||
.send(WriterRequest::Message(MessageOwned::Interested))?;
|
|
||||||
|
|
||||||
loop {
|
loop {
|
||||||
self.wait_for_unchoke().await;
|
self.wait_for_unchoke().await;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue