public void Dispose() { if (!m_disposed) { // Shut down worker thread m_outstandingConnections.Clear(); m_newCommand.Set(); m_scheduler.Join(); // Release HW resources m_driver.Disconnect(); m_driver.Dispose(); } s_manager = null; m_disposed = true; }
public override void Execute(BTConnection conn, BTDriver driver) { this.Success = driver.Disconnect(); conn.Connected = !this.Success; }