RiptideNetworking / Riptide

Lightweight C# networking solution for multiplayer games.
https://riptide.tomweiland.net
MIT License
1.06k stars 141 forks source link

Fix OnClientDisconnected not invoked when Client in Pending state #104

Closed Bilnord closed 10 months ago

Bilnord commented 1 year ago

OnClientDisconnected not invoked when Client was in Pending state - accepted by the server but there was no Welcome response meaning that client state was not changed to Connected.

tom-weiland commented 10 months ago

I decided this would be better resolved with a ConnectionFailed event to match client behaviour (the Disconnected event only being invoked if a connection was previously established).