Browse Source

Return 0 instead of -1 on enet_protocol_receive_incoming_commands when nothing received.

Return 0 instead of -1 on enet_protocol_receive_incoming_commands when nothing received.
This allows the Service loop to continue running and not return an error.
Maxim 5 years ago
parent
commit
c03d660136
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Source/Native/enet.h

+ 1 - 1
Source/Native/enet.h

@@ -2494,7 +2494,7 @@ extern "C" {
 			}
 			}
 		}
 		}
 
 
-		return -1;
+		return 0;
 	}
 	}
 
 
 	static void enet_protocol_send_acknowledgements(ENetHost* host, ENetPeer* peer) {
 	static void enet_protocol_send_acknowledgements(ENetHost* host, ENetPeer* peer) {