Ejemplo n.º 1
0
 public void disconnect(bool reconnect)
 {
     System.Diagnostics.Debug.WriteLine("disconnect");
     clearQueue();
     connection.disconnect();
     if (usartConnection != null)
     {
         usartConnection.disconnect();
     }
     if (reconnect)
     {
         connection.reconnect = true;
         connection.asyncConnect();
     }
 }