Esempio n. 1
0
        /// <summary>
        /// Fired when a client disconnected from the server
        /// </summary>
        /// <param name="client">The client that has disconnected</param>
        private void OnClientDisconnected(ClientModel client)
        {
            // If the client that has disconnected is the one who isn't taking the test right now, don't do anything
            if (!ClientsInTest.Contains(client))
            {
                return;
            }

            if (IsTestInProgress)
            {
                client.HasConnectionProblem = true;
            }
            else
            {
                ClientsInTest.Remove(client);
            }
        }