Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions Assets/Mirror/Core/NetworkServer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1075,12 +1075,6 @@ static void OnTransportException(int connectionId, Exception exception)
// authority set for this connection.
public static void DestroyPlayerForConnection(NetworkConnectionToClient conn)
{
if (conn == null)
{
Debug.LogWarning($"No instance of player found when trying to destroy it's connection.");
return;
}

// destroy all objects owned by this connection, including the player object
conn.DestroyOwnedObjects();
// remove connection from all of its observing entities observers
Expand Down