[enet-cvs] Bug in enet_peer_disconnect_now

Marcin Zajączkowski mszpak at wp.pl
Wed Apr 14 07:38:19 PDT 2004


Hi,

After some time spent on tracking problem with wrong disconnecting in my 
code I finally found small bug in peer.c (small, but because of it 
enet_peer_disconnect_now didn't work properly (exactly didn't work at 
all ;) ).

Best regards
Marcin

<PATCH>
--- peer.c.bak  2004-04-14 16:02:38.643452912 +0200
+++ peer.c      2004-04-14 16:03:10.542603504 +0200
@@ -415,7 +415,7 @@
  {
      ENetProtocol command;

-    if (peer -> state != ENET_PEER_STATE_DISCONNECTED)
+    if (peer -> state == ENET_PEER_STATE_DISCONNECTED)
        return;

      if (peer -> state != ENET_PEER_STATE_ZOMBIE &&
</PATCH>


More information about the enet-cvs mailing list