react-native-udp
react-native-udp copied to clipboard
fix close socket
On some devices, the close method remained stuck: the UdpReceiverTask would never stop. This can be fixed by adding a timeout to the socket.
If UdpReceiverTask never stops, it might be better to close the thread executor instead of adding a timeout to the socket.
If UdpReceiverTask never stops, it might be better to close the thread executor instead of adding a timeout to the socket.
not really cause internally, the socket will still not be closed.
@jan-bogaerts, oh, I understand. Then, the issue is how the task is being handled. I will try to add a thread handler asap.