net: poll returning false is not an error. No need to repoll.
This commit is contained in:
parent
8f4fae9b36
commit
570ffab670
1 changed files with 1 additions and 5 deletions
|
@ -288,11 +288,7 @@ impl<D: Driver + 'static> Inner<D> {
|
||||||
cx: Some(cx),
|
cx: Some(cx),
|
||||||
inner: &mut self.device,
|
inner: &mut self.device,
|
||||||
};
|
};
|
||||||
if !s.iface.poll(timestamp, &mut smoldev, &mut s.sockets) {
|
s.iface.poll(timestamp, &mut smoldev, &mut s.sockets);
|
||||||
// If poll() returns error, it may not be done yet, so poll again later.
|
|
||||||
cx.waker().wake_by_ref();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Update link up
|
// Update link up
|
||||||
let old_link_up = self.link_up;
|
let old_link_up = self.link_up;
|
||||||
|
|
Loading…
Reference in a new issue