This commit is contained in:
vis2k 2022-02-05 00:37:15 +08:00
parent 8e03cee673
commit 7488aac1d6

View File

@ -222,10 +222,8 @@ public static bool AddConnection(NetworkConnectionToClient conn)
}
/// <summary>Removes a connection by connectionId. Returns true if removed.</summary>
public static bool RemoveConnection(int connectionId)
{
return connections.Remove(connectionId);
}
public static bool RemoveConnection(int connectionId) =>
connections.Remove(connectionId);
// called by LocalClient to add itself. don't call directly.
// TODO consider internal setter instead?