Esempio n. 1
0
        internal bool RemoveSpectator(SpectatorConnection client)
        {
            lock (_spectatorLock)
            {
                if (_spectators.Count == 0)
                {
                    return(false);
                }

                return(_spectators.Remove(client));
            }
        }
Esempio n. 2
0
        internal void RemoveSpectator(SpectatorConnection client)
        {
            lock (_spectatorLock)
            {
                if (_spectators.Count == 0)
                {
                    return;
                }

                _spectators.Remove(client);
            }
        }
Esempio n. 3
0
 internal bool RemoveConnection(ClientConnectionBase connection)
 {
     lock (_connectionLock)
     {
         return(_addressTally.RemoveTally(connection.GetIPAddress(), connection) && _connections.Remove(connection));
     }
 }
Esempio n. 4
0
 internal void RemoveConnection(ClientConnectionBase connection)
 {
     lock (_connectionLock)
     {
         var unused = _addressTally.RemoveTally(connection.GetIpAddress(), connection) && _connections.Remove(connection);
     }
 }