aboutsummaryrefslogtreecommitdiffhomepage
path: root/protocol.c
diff options
context:
space:
mode:
authoreihrul <eihrul>2007-01-12 07:00:57 +0000
committereihrul <eihrul>2007-01-12 07:00:57 +0000
commit54ecd741df85fec090152caaac7c912560de575c (patch)
tree9438ddd20aa220720c3db1d707d274f852a0ee82 /protocol.c
parentb323663c57a71ba4d88f5296f5394355db251eaa (diff)
downloadenet-54ecd741df85fec090152caaac7c912560de575c.tar.gz
enet-54ecd741df85fec090152caaac7c912560de575c.zip
*** empty log message ***
Diffstat (limited to 'protocol.c')
-rw-r--r--protocol.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/protocol.c b/protocol.c
index 14b0d43..c41ccde 100644
--- a/protocol.c
+++ b/protocol.c
@@ -121,7 +121,7 @@ enet_protocol_notify_disconnect (ENetHost * host, ENetPeer * peer, ENetEvent * e
if (peer -> state >= ENET_PEER_STATE_CONNECTION_PENDING)
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);
else
if (event == NULL)