     }
 
     open func didDisconnect(error: Error?) {
-        discoveryManager.queue.assertIsDispatching()
+        queue.assertIsDispatching()
         if autoReconnect {
             connect(autoReconnect: true)
         }

    }

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

    }

    open func didFailToConnect(error: Error?) {
        queue.assertIsDispatching()
        guard let peripheral = peripheral else { return }
        assumeNotAdvertising()
        if connectionAttempt < type(of: self).connectionRetryCount {
