diff options
author | Timur Pocheptsov <timur.pocheptsov@theqtcompany.com> | 2016-07-21 10:14:29 +0200 |
---|---|---|
committer | Timur Pocheptsov <timur.pocheptsov@theqtcompany.com> | 2016-07-21 10:17:17 +0000 |
commit | 08a545a874e6774d4662fcc1b5dc79450967a596 (patch) | |
tree | 5c204de5ac59c83d4d5fc0e042366b8a52bbeea3 /src | |
parent | bd854e020e6d60a3c1ccf5213eacfb126c42d9d6 (diff) |
QBluetoothDeviceDiscoveryAgent - 'start' should return on error (iOS)
After reporting 'UnsupportedMethodError' we should immediately return
instead of starting LE scan.
Change-Id: I3861373059fac567dc93e8edb99fba4f6d8b872c
Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/bluetooth/qbluetoothdevicediscoveryagent_ios.mm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bluetooth/qbluetoothdevicediscoveryagent_ios.mm b/src/bluetooth/qbluetoothdevicediscoveryagent_ios.mm index 6d41ebf0..3f4c6755 100644 --- a/src/bluetooth/qbluetoothdevicediscoveryagent_ios.mm +++ b/src/bluetooth/qbluetoothdevicediscoveryagent_ios.mm @@ -381,6 +381,7 @@ void QBluetoothDeviceDiscoveryAgent::start(DiscoveryMethods methods) d_ptr->errorString = QBluetoothDeviceDiscoveryAgent::tr("One or more device discovery methods " "are not supported on this platform"); emit error(d_ptr->lastError); + return; } if (!isActive() && d_ptr->lastError != InvalidBluetoothAdapterError) |