libnet: bugfix when using interrupts
authorRoni Häcki <roni.haecki@inf.ethz.ch>
Mon, 18 Sep 2017 13:57:34 +0000 (15:57 +0200)
committerRoni Häcki <roni.haecki@inf.ethz.ch>
Mon, 18 Sep 2017 13:57:34 +0000 (15:57 +0200)
Small bug that actually "polled" for interrupts using
event_dispatch_non_block instead of event_dispatch

Signed-off-by: Roni Häcki <roni.haecki@inf.ethz.ch>

lib/net/net.c

index 652d7b4..e62194c 100644 (file)
@@ -124,7 +124,7 @@ static errval_t networking_poll_st(struct net_state *st)
     if (st->flags & NET_FLAGS_POLLING) {
         return net_if_poll(&st->netif);
     } else {
-        return event_dispatch_non_block(get_default_waitset());
+        return event_dispatch(get_default_waitset());
     }
 }