tcp_stack: fix update_delay default value

This commit is contained in:
occheung 2020-09-25 12:26:49 +08:00
parent 26225719a1
commit e86e609d6c
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ impl<'a, 'b, 'c, 'n> NetworkStack<'a, 'b, 'c, 'n> {
self.network_interface.poll_delay(
&mut self.sockets.borrow_mut(),
net::time::Instant::from_millis(time as i64),
).map_or(1000, |next_poll_time| next_poll_time.total_millis() as u32)
).map_or(0, |next_poll_time| next_poll_time.total_millis() as u32)
}
pub fn update(&mut self, time: u32) -> bool {