You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
Fix bug causing UDP socket to close after the first send if not listening
The ring buffer for receiving packets was not resized in constructor
(cherry picked from commit 68dc969f8c)
This commit is contained in:
@@ -269,6 +269,7 @@ PacketPeerUDPPosix::PacketPeerUDPPosix() {
|
||||
queue_count = 0;
|
||||
peer_port = 0;
|
||||
sock_type = IP::TYPE_NONE;
|
||||
rb.resize(8);
|
||||
}
|
||||
|
||||
PacketPeerUDPPosix::~PacketPeerUDPPosix() {
|
||||
|
||||
Reference in New Issue
Block a user