aboutsummaryrefslogtreecommitdiffhomepage
path: root/protocol.c
diff options
context:
space:
mode:
authorlsalzman <[email protected]>2013-11-27 16:33:09 +0200
committerlsalzman <[email protected]>2013-11-27 16:33:09 +0200
commit84a4ac70aba892b07d0fa1104fe9773f9485fdf6 (patch)
treedf64c548c5e8b88c049967dce93711921fc12612 /protocol.c
parent9d1d09c1e59c0524fb9aee41585d417828757e73 (diff)
downloadenet-84a4ac70aba892b07d0fa1104fe9773f9485fdf6.tar.gz
enet-84a4ac70aba892b07d0fa1104fe9773f9485fdf6.zip
handle disconnects in connecting state
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 11d0c4c..b8d4863 100644
--- a/protocol.c
+++ b/protocol.c
@@ -820,7 +820,7 @@ enet_protocol_handle_disconnect (ENetHost * host, ENetPeer * peer, const ENetPro
enet_peer_reset_queues (peer);
- if (peer -> state == ENET_PEER_STATE_CONNECTION_SUCCEEDED || peer -> state == ENET_PEER_STATE_DISCONNECTING)
+ if (peer -> state == ENET_PEER_STATE_CONNECTION_SUCCEEDED || peer -> state == ENET_PEER_STATE_DISCONNECTING || peer -> state == ENET_PEER_STATE_CONNECTING)
enet_protocol_dispatch_state (host, peer, ENET_PEER_STATE_ZOMBIE);
else
if (peer -> state != ENET_PEER_STATE_CONNECTED && peer -> state != ENET_PEER_STATE_DISCONNECT_LATER)