Finalizing updates after testing

master
Ryan Summers 2021-06-11 17:52:11 +02:00
parent b40ca17fea
commit 5a947e459c
2 changed files with 3 additions and 6 deletions

View File

@ -157,6 +157,8 @@ impl<'a> DataPacket<'a> {
}
}
self.num_blocks += 1;
Ok(())
}
@ -199,8 +201,6 @@ impl DataStream {
// Note(unwrap): We guarantee that the socket is available above.
let socket = self.socket.take().unwrap();
self.stack.close(socket).unwrap();
log::info!("Stream Disconnecting");
}
fn open(&mut self, remote: SocketAddr) -> Result<(), ()> {

View File

@ -73,10 +73,7 @@ impl NetworkProcessor {
let result = match self.stack.lock(|stack| stack.poll(now)) {
Ok(true) => UpdateState::Updated,
Ok(false) => UpdateState::NoChange,
Err(err) => {
log::info!("Network error: {:?}", err);
UpdateState::Updated
}
Err(_) => UpdateState::Updated,
};
result