Bauglir.Ex.WebSocketServer.RemoveConnection C# (CSharp) Method

RemoveConnection() protected method

protected RemoveConnection ( WebSocketServerConnection aConnection ) : void
aConnection WebSocketServerConnection
return void
        protected void RemoveConnection(WebSocketServerConnection aConnection)
        {
            if (fConnections.IndexOf(aConnection) > -1)
            {
                if (BeforeRemoveConnection != null) BeforeRemoveConnection(this, aConnection);
                LockConnections();
                fConnections.Remove(aConnection);
                UnlockConnections();
                if (AfterRemoveConnection != null) AfterRemoveConnection(this, aConnection);
            }
        }