[ENet-discuss] Re: [enet-cvs] Bug in enet_peer_disconnect_now

Lee Salzman lsalzman at telerama.com
Wed Apr 14 08:18:25 PDT 2004


Thanks, I'll commit the fix once Cubik CVS is back up. It seems to be
down at the moment.

Oh, and btw, I'm still busily dealing with graduation. So ETA on 1.0 is
going to be atleast 2 months (after I graduate and move). Hang in there.
:)

Lee

On Wed, Apr 14, 2004 at 04:38:19PM +0200, Marcin Zaj?czkowski wrote:
> 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-discuss mailing list