Don't use an infinite loop in Network::poll().

The only infinite loop in this context should be in the API class, period.