Ejemplo n.º 1
0
 /// <summary>
 /// Close the connection to the chat client
 /// <para>Called once in OnDestroy</para>
 /// </summary>
 public void CloseConnection()
 {
     if (m_Worker != null)
     {
         throw new InvalidOperationException("The chat monitor is still running call StopChatMonitor() before trying to close the connection.");
     }
     m_Client.CloseConnection();
 }