[enet-cvs] CVS: enet protocol.c,1.27,1.28
Lee Salzman
enet at sferik.cubik.org
Sun Dec 14 18:02:15 PST 2003
Update of /home/enet/cvsroot/enet
In directory sferik:/tmp/cvs-serv20162
Modified Files:
protocol.c
Log Message:
more sanity checks
Index: protocol.c
===================================================================
RCS file: /home/enet/cvsroot/enet/protocol.c,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -r1.27 -r1.28
--- protocol.c 2003/12/14 01:50:26 1.27
+++ protocol.c 2003/12/15 02:02:12 1.28
@@ -417,6 +417,9 @@
enet_peer_reset_queues (peer);
+ if (peer -> state != ENET_PEER_STATE_CONNECTED)
+ enet_peer_reset (peer);
+ else
if (command -> header.flags & ENET_PROTOCOL_FLAG_ACKNOWLEDGE)
peer -> state = ENET_PEER_STATE_ACKNOWLEDGING_DISCONNECT;
else
More information about the enet-cvs
mailing list