summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authoreihrul <eihrul>2008-01-09 14:03:32 +0000
committereihrul <eihrul>2008-01-09 14:03:32 +0000
commit0a373938f706ddb7a41f9c8d0225075b1a4d8ab8 (patch)
treeebea1219c0b59b7d586589e0b3751b899c2098d6
parente40ad2da448dacd795f646dc69fb2d6076cb75e1 (diff)
downloadenet-0a373938f706ddb7a41f9c8d0225075b1a4d8ab8.tar.gz
enet-0a373938f706ddb7a41f9c8d0225075b1a4d8ab8.zip
*** empty log message ***
-rw-r--r--protocol.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/protocol.c b/protocol.c
index 2a249d8..af82fd6 100644
--- a/protocol.c
+++ b/protocol.c
@@ -740,7 +740,7 @@ enet_protocol_handle_verify_connect (ENetHost * host, ENetEvent * event, ENetPee
enet_uint32 windowSize;
if (peer -> state != ENET_PEER_STATE_CONNECTING)
- return -1;
+ return 0;
if (ENET_NET_TO_HOST_32 (command -> verifyConnect.channelCount) != peer -> channelCount ||
ENET_NET_TO_HOST_32 (command -> verifyConnect.packetThrottleInterval) != peer -> packetThrottleInterval ||