RevenantX / LiteNetLib

Lite reliable UDP library for Mono and .NET
https://revenantx.github.io/LiteNetLib/index.html
MIT License
3.07k stars 496 forks source link

PeerDisconnectedEvent Called twice #143

Closed Skinz3 closed 6 years ago

Skinz3 commented 6 years ago

Hi, im using your library, and when i call on my client myNetPeer.Disconnect();

The server is calling PeerDisconnectedEvent(); a first time, and a second time, 5000ms later, its the DisconnectTimeout, but why is this event called twice and why the client isnt removed from PeerClientCollection _peers when i disconnect at the first time?

Thanks

RevenantX commented 6 years ago

@Skinz3 master branch not well tested) If you want more stable version use https://github.com/RevenantX/LiteNetLib/tree/0.7 This is just bug) I will fix it)

Skinz3 commented 6 years ago

Okay :) Thanks, btw your library is well done ^^