FirstGearGames / FishySteamworks

A Steamworks implementation for Fish-Net.
Other
81 stars 18 forks source link

Collection fixes #12

Closed petergiuntoli closed 4 months ago

petergiuntoli commented 4 months ago

This change requires .net 9.0 which is supported in unity 2021.2 (https://docs.unity3d.com/2021.2/Documentation/Manual/CSharpCompiler.html) and up. Alternatively the Remove() code could use TryGetValue() instead of the double lookup with Contains() and then the index operator.

The main fix is to ServerSocket.cs which previously retained old connections which could cause bugs when stopping and starting connections.

petergiuntoli commented 4 months ago

This is obsolete if https://github.com/FirstGearGames/FishySteamworks/pull/13 gets merged