Skip to content

Commit

Permalink
Merge pull request #11 from Raystorms/on_disconnect_fix
Browse files Browse the repository at this point in the history
fix Disconnecting (kick) connection, now properly calls OnDisconnect …
  • Loading branch information
Raystorms authored Mar 15, 2019
2 parents e7e1f6e + b1fb5dd commit b2b1b28
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Server.cs
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,8 @@ private async void Disconnect(SteamClient steamClient)

//Wait a short time before calling steams disconnect function so the message has time to go out
await Task.Delay(100);
steamConnectionMap.Remove(steamClient);
OnDisconnected?.Invoke(steamClient.connectionID);
CloseP2PSessionWithUser(steamClient.steamID);
}

Expand Down

0 comments on commit b2b1b28

Please sign in to comment.