1
0
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:
Fabio Alessandrelli
2023-07-19 09:46:53 +02:00
committed by Yuri Sizov
parent f6e436c34c
commit dc1c3d03da
7 changed files with 241 additions and 168 deletions

View File

@@ -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;