     }
 
     internal func centralManagerDidUpdateState() {
-        discoveryManager.queue.assertIsDispatching()
+        queue.assertIsDispatching()
         switch centralManager.state {
         case .poweredOn:
             if autoReconnect {

    private var autoReconnect = false

    public required init(discoveryManager: BLEDiscoveryManager, peripheral: CBPeripheral) {
        discoveryManager.queue.assertIsDispatching()
        self.discoveryManager = discoveryManager
        self.uuid = peripheral.identifier
        super.init()

    }

    open func disconnect() {
        queue.async {
            self.autoReconnect = false
            guard let peripheral = self.peripheral else { return }
            DDLogDebug("BLEDevice \(peripheral.identifier.uuidString) disconnect()")
