Fixed bugs
This commit is contained in:
parent
6ebf2120a4
commit
2203ffe4a9
7 changed files with 536 additions and 44 deletions
|
|
@ -31,6 +31,7 @@ pub trait PeerConnectionHandler {
|
|||
pub enum WriterRequest {
|
||||
Message(MessageOwned),
|
||||
ReadChunkRequest(ChunkInfo),
|
||||
Disconnect,
|
||||
}
|
||||
|
||||
#[derive(Default, Copy, Clone)]
|
||||
|
|
@ -247,6 +248,9 @@ impl<H: PeerConnectionHandler> PeerConnection<H> {
|
|||
uploaded_add = Some(chunk.size);
|
||||
full_len
|
||||
}
|
||||
WriterRequest::Disconnect => {
|
||||
return Ok(());
|
||||
}
|
||||
};
|
||||
|
||||
debug!("sending to {}: {:?}, length={}", self.addr, &req, len);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue