You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-12-04 17:04:49 +00:00
[ENet] Update to upstream master.
(cherry picked from commit 35b70681e7)
This commit is contained in:
committed by
Yuri Sizov
parent
f6e436c34c
commit
dc1c3d03da
4
thirdparty/enet/godot.cpp
vendored
4
thirdparty/enet/godot.cpp
vendored
@@ -535,6 +535,10 @@ int enet_socket_receive(ENetSocket socket, ENetAddress *address, ENetBuffer *buf
|
||||
if (err == ERR_BUSY) {
|
||||
return 0;
|
||||
}
|
||||
if (err == ERR_OUT_OF_MEMORY) {
|
||||
// A packet above the ENET_PROTOCOL_MAXIMUM_MTU was received.
|
||||
return -2;
|
||||
}
|
||||
|
||||
if (err != OK) {
|
||||
return -1;
|
||||
|
||||
Reference in New Issue
Block a user