diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2020-08-21 15:40:43 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-08-22 19:35:58 -0700 |
commit | ba3efae6e8335ff7b050ed03b4432aeda1a0d41a (patch) | |
tree | 93b754a58a61b9bdb03f3491f563426966a4a4a2 /core | |
parent | adeade55812b352f06d5f2bb4bfc5dd5897ee466 (diff) | |
download | subsurface-ba3efae6e8335ff7b050ed03b4432aeda1a0d41a.tar.gz |
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 <dirk@hohndel.org>
Diffstat (limited to 'core')
-rw-r--r-- | core/btdiscovery.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
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(); |