Commit 5a9808e0 authored by Committed by Albert Vaca Cintora
Consume all pendingDatagrams from udpServer
This fixes a bug where receiving broadcast messages would stop working in case 2 messages have been received at the same time. The problem is that readReady will only emit once per batch of datagrams received, in case we receive 2 datagrams but only consume 1, readReady will never be emitted again.
Showing with 2 additions and 2 deletions