diff options
author | eihrul <eihrul> | 2011-06-28 15:25:53 +0000 |
---|---|---|
committer | eihrul <eihrul> | 2011-06-28 15:25:53 +0000 |
commit | 7691ccc31812db9eb28a0ea2e220b4487fc853ba (patch) | |
tree | 49f892d6e8ed5b43e80d8d7bc8cd357372d8e5c0 /protocol.c | |
parent | cfb05d051b4b4ee635e8785fdb05b05f7dd2fffa (diff) | |
download | enet-7691ccc31812db9eb28a0ea2e220b4487fc853ba.tar.gz enet-7691ccc31812db9eb28a0ea2e220b4487fc853ba.zip |
fixed bug with simultaneous disconnects not dispatching events
Diffstat (limited to 'protocol.c')
-rw-r--r-- | protocol.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -764,7 +764,7 @@ enet_protocol_handle_disconnect (ENetHost * host, ENetPeer * peer, const ENetPro enet_peer_reset_queues (peer); - if (peer -> state == ENET_PEER_STATE_CONNECTION_SUCCEEDED) + if (peer -> state == ENET_PEER_STATE_CONNECTION_SUCCEEDED || peer -> state == ENET_PEER_STATE_DISCONNECTING) 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) |