summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Blasche <alexander.blasche@theqtcompany.com>2016-07-21 12:13:41 +0200
committerAlex Blasche <alexander.blasche@theqtcompany.com>2016-07-21 10:22:39 +0000
commit9c605847485fe13f7dcf5e782767f0f070941880 (patch)
tree7e03b254c7b93fb21775d998e788b3336519b895
parent08a545a874e6774d4662fcc1b5dc79450967a596 (diff)
QBluetoothDeviceDiscoveryAgent::start() should return early from error
Change-Id: I62ba10117b544e6a31a3fd92f8dbc65ea4ea3ff6 Reviewed-by: Timur Pocheptsov <timur.pocheptsov@theqtcompany.com>
-rw-r--r--src/bluetooth/qbluetoothdevicediscoveryagent.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bluetooth/qbluetoothdevicediscoveryagent.cpp b/src/bluetooth/qbluetoothdevicediscoveryagent.cpp
index 3dbbc9e3..b033ae3c 100644
--- a/src/bluetooth/qbluetoothdevicediscoveryagent.cpp
+++ b/src/bluetooth/qbluetoothdevicediscoveryagent.cpp
@@ -348,6 +348,7 @@ void QBluetoothDeviceDiscoveryAgent::start(DiscoveryMethods methods)
d->errorString = QBluetoothDeviceDiscoveryAgent::tr("One or more device discovery methods "
"are not supported on this platform");
emit error(d->lastError);
+ return;
}
if (!isActive() && d->lastError != InvalidBluetoothAdapterError)