Browse files

Updated enet to 1.3.3

The bugfix is not likely to affect us, but better to be up to date anyway.
  • Loading branch information...
1 parent 30c80aa commit dffeb1fa216e67edf52590c59dd44cfc6958e087 @bjorn bjorn committed Mar 14, 2012
Showing with 10 additions and 2 deletions.
  1. +8 −0 libs/enet/ChangeLog
  2. +1 −1 libs/enet/include/enet/enet.h
  3. +1 −1 libs/enet/protocol.c
View
8 libs/enet/ChangeLog
@@ -1,3 +1,7 @@
+ENet 1.3.3 (June 28, 2011):
+
+* fixed bug with simultaneous disconnects not dispatching events
+
ENet 1.3.2 (May 31, 2011):
* added support for unreliable packet fragmenting via the packet flag
@@ -28,6 +32,10 @@ Caveats: This version is not protocol compatible with the 1.2 series or
earlier. The enet_host_connect and enet_host_create API functions require
supplying additional parameters.
+ENet 1.2.5 (June 28, 2011):
+
+* fixed bug with simultaneous disconnects not dispatching events
+
ENet 1.2.4 (May 31, 2011):
* fixed regression in unreliable packet queuing
View
2 libs/enet/include/enet/enet.h
@@ -25,7 +25,7 @@ extern "C"
#define ENET_VERSION_MAJOR 1
#define ENET_VERSION_MINOR 3
-#define ENET_VERSION_PATCH 2
+#define ENET_VERSION_PATCH 3
#define ENET_VERSION_CREATE(major, minor, patch) (((major)<<16) | ((minor)<<8) | (patch))
#define ENET_VERSION ENET_VERSION_CREATE(ENET_VERSION_MAJOR, ENET_VERSION_MINOR, ENET_VERSION_PATCH)
View
2 libs/enet/protocol.c
@@ -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)

0 comments on commit dffeb1f

Please sign in to comment.