From ba3efae6e8335ff7b050ed03b4432aeda1a0d41a Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Fri, 21 Aug 2020 15:40:43 -0700 Subject: macOS/bluetooth: remove the forced rescan I can no longer reproduce the case where this rescan was necessary. So let's remove it as it causes additional wait time for BT/BLE users on macOS. Signed-off-by: Dirk Hohndel --- core/btdiscovery.cpp | 9 --------- 1 file changed, 9 deletions(-) (limited to 'core') diff --git a/core/btdiscovery.cpp b/core/btdiscovery.cpp index c054b822f..0e071c207 100644 --- a/core/btdiscovery.cpp +++ b/core/btdiscovery.cpp @@ -398,15 +398,6 @@ void BTDiscovery::discoverAddress(QString address) QString btAddress; btAddress = extractBluetoothAddress(address); -#if defined(Q_OS_MACOS) - // macOS appears to need a fresh scan if we want to switch devices - static QString lastAddress; - if (lastAddress != address) { - btDeviceInfo.clear(); - discoveryAgent->stop(); - lastAddress = address; - } -#endif if (!btDeviceInfo.keys().contains(address) && !discoveryAgent->isActive()) { qDebug() << "restarting discovery agent"; discoveryAgent->start(); -- cgit v1.2.3-70-g09d2