You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
Avoid calling close when polling a UDP peer without socket
(cherry picked from commit e4b9b37ccf)
This commit is contained in:
@@ -154,6 +154,10 @@ Error PacketPeerUDPPosix::wait() {
|
||||
|
||||
Error PacketPeerUDPPosix::_poll(bool p_wait) {
|
||||
|
||||
if (sockfd == -1) {
|
||||
return FAILED;
|
||||
}
|
||||
|
||||
struct sockaddr_storage from = { 0 };
|
||||
socklen_t len = sizeof(struct sockaddr_storage);
|
||||
int ret;
|
||||
|
||||
Reference in New Issue
Block a user