Steamworks.NET
Steamworks.NET copied to clipboard
CloseListenSocket does not trigger SteamNetConnectionStatusChangedCallback_t disconnect on local client
Expected behavior:
bool CloseListenSocket( HSteamListenSocket hSocket );All the connections that were accepted on the listen socket are closed ungracefully
https://partner.steamgames.com/doc/api/ISteamNetworkingSockets
Issue repro steps:
- Start listen server
- Connect to listen server with local client (same machine)
- Close listen server
- Local client connected to listen server does not get SteamNetConnectionStatusChangedCallback_t indicating a disconnect
I'm currently getting around this by manually closing each connection before closing the listen socket. But that feels hacky.