diff options
author | Robin Burchell <robin.burchell@viroteck.net> | 2015-08-20 08:19:37 +0000 |
---|---|---|
committer | Alex Blasche <alexander.blasche@theqtcompany.com> | 2015-08-21 09:47:12 +0000 |
commit | 6cb5b915765960293986d76655aee29d78a74cf7 (patch) | |
tree | ee1bbe975d467ded4ae4b55c3bd229ecdec0e14a | |
parent | 973c4c0f951395e4b8a02dc14bbc17f35838ea15 (diff) |
Stop device discovery session before retrieving service records.
Each org.bluez.Adapter.StartDiscovery should be paired with a
corresponding StopDiscovery; it is not enough to merely observe that
an adapter's Discovering property momentarily changes from true to
false.
Change-Id: Iee4ea4119cb4b6cd78982385bf18970d5b48d2de
Task-number: MER#1230
Done-by: Hannu Mallat <hannu.mallat@jollamobile.com>
Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
-rw-r--r-- | src/bluetooth/qbluetoothdevicediscoveryagent_bluez.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/bluetooth/qbluetoothdevicediscoveryagent_bluez.cpp b/src/bluetooth/qbluetoothdevicediscoveryagent_bluez.cpp index 718670ee..7f477a02 100644 --- a/src/bluetooth/qbluetoothdevicediscoveryagent_bluez.cpp +++ b/src/bluetooth/qbluetoothdevicediscoveryagent_bluez.cpp @@ -427,6 +427,8 @@ void QBluetoothDeviceDiscoveryAgentPrivate::_q_propertyChanged(const QString &na return; } + QDBusPendingReply<> reply = adapter->StopDiscovery(); + reply.waitForFinished(); adapter->deleteLater(); adapter = 0; emit q->finished(); |