Process more than one UDP socket per poll

This commit is contained in:
Aram 🍐 2022-01-08 17:49:07 -05:00
parent 3b296d66c5
commit e06b6526b7

View file

@ -152,7 +152,6 @@ impl VirtualInterfacePoll for UdpVirtualInterface {
virtual_port, e
);
});
break;
}
}
}
@ -166,7 +165,6 @@ impl VirtualInterfacePoll for UdpVirtualInterface {
Ok((data, _peer)) => {
if !data.is_empty() {
endpoint.send(Event::RemoteData(*virtual_port, data.to_vec()));
break;
}
}
Err(e) => {