tcp_stack: fix update_delay default value
This commit is contained in:
parent
26225719a1
commit
e86e609d6c
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue