Fixed issue with UdpSocket that prevented UDP packets from being correctly received.