Skip to content

Commit

Permalink
fix Disconnecting (kick) connection, now properly calls OnDisconnect …
Browse files Browse the repository at this point in the history
…& clean up connection.
  • Loading branch information
Raystorms committed Mar 15, 2019
1 parent e7e1f6e commit b1fb5dd
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 b1fb5dd

Please sign in to comment.