You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-12 13:20:55 +00:00
Properly reset socket blocking state on close
This commit is contained in:
@@ -164,6 +164,7 @@ void PacketPeerUDPPosix::close() {
|
||||
::close(sockfd);
|
||||
sockfd = -1;
|
||||
sock_type = IP::TYPE_NONE;
|
||||
sock_blocking = true;
|
||||
rb.resize(16);
|
||||
queue_count = 0;
|
||||
}
|
||||
|
||||
@@ -155,6 +155,7 @@ void PacketPeerUDPWinsock::close() {
|
||||
::closesocket(sockfd);
|
||||
sockfd = -1;
|
||||
sock_type = IP::TYPE_NONE;
|
||||
sock_blocking = true;
|
||||
rb.resize(16);
|
||||
queue_count = 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user