diff options
author | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2017-01-18 21:33:55 +0100 |
---|---|---|
committer | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2017-01-23 20:18:23 +0100 |
commit | 68dc969f8ca242d0c4f927a417557288e4b1b75f (patch) | |
tree | 69f1a62a5f61d606cc703eee0c5f4227a126df1c /drivers/unix/packet_peer_udp_posix.cpp | |
parent | fa0cb7da0e096e01476eabef37c225404c7f6f26 (diff) | |
download | redot-engine-68dc969f8ca242d0c4f927a417557288e4b1b75f.tar.gz |
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
Diffstat (limited to 'drivers/unix/packet_peer_udp_posix.cpp')
-rw-r--r-- | drivers/unix/packet_peer_udp_posix.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/unix/packet_peer_udp_posix.cpp b/drivers/unix/packet_peer_udp_posix.cpp index 88293fc513..7de54df043 100644 --- a/drivers/unix/packet_peer_udp_posix.cpp +++ b/drivers/unix/packet_peer_udp_posix.cpp @@ -275,6 +275,7 @@ PacketPeerUDPPosix::PacketPeerUDPPosix() { queue_count=0; peer_port=0; sock_type = IP::TYPE_NONE; + rb.resize(8); } PacketPeerUDPPosix::~PacketPeerUDPPosix() { |