Explorar el Código

*** empty log message ***

eihrul hace 18 años
padre
commit
54ecd741df
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      protocol.c

+ 1 - 1
protocol.c

@@ -121,7 +121,7 @@ enet_protocol_notify_disconnect (ENetHost * host, ENetPeer * peer, ENetEvent * e
     if (peer -> state >= ENET_PEER_STATE_CONNECTION_PENDING)
     if (peer -> state >= ENET_PEER_STATE_CONNECTION_PENDING)
         host -> recalculateBandwidthLimits = 1;
         host -> recalculateBandwidthLimits = 1;
 
 
-    if (peer -> state < ENET_PEER_STATE_CONNECTION_SUCCEEDED)
+    if (peer -> state != ENET_PEER_STATE_CONNECTING && peer -> state < ENET_PEER_STATE_CONNECTION_SUCCEEDED)
         enet_peer_reset (peer);
         enet_peer_reset (peer);
     else
     else
     if (event == NULL)
     if (event == NULL)