diff options
author | Alex Blasche <alexander.blasche@digia.com> | 2014-05-26 14:47:51 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-05-28 15:18:42 +0200 |
commit | 00c7458831695ebf075c8e16a023e68cbefe1bc5 (patch) | |
tree | 4e03b31824c3f41f8607ae843cc498fd285b873a /src/bluetooth | |
parent | 6ef2e80a31ba1f96c0e38ea93c700e33c348a64c (diff) | |
download | qtconnectivity-00c7458831695ebf075c8e16a023e68cbefe1bc5.tar.gz |
Don't stop processing of Bluez services if one service is invalid
This is a regression introduced during the Bluez5 port. During the
service xml parsing we may encounter an invalid service info. This does
not mean the next one is invalid too. This bug caused the service
discovery to abort.
Change-Id: If51e0f898d83e99ba0a279c13ccaa3e5947bb6bf
Reviewed-by: Aaron McCarthy <mccarthy.aaron@gmail.com>
Diffstat (limited to 'src/bluetooth')
-rw-r--r-- | src/bluetooth/qbluetoothservicediscoveryagent_bluez.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bluetooth/qbluetoothservicediscoveryagent_bluez.cpp b/src/bluetooth/qbluetoothservicediscoveryagent_bluez.cpp index 5804d8b3..48967441 100644 --- a/src/bluetooth/qbluetoothservicediscoveryagent_bluez.cpp +++ b/src/bluetooth/qbluetoothservicediscoveryagent_bluez.cpp @@ -482,7 +482,7 @@ void QBluetoothServiceDiscoveryAgentPrivate::_q_discoveredServices(QDBusPendingC const QBluetoothServiceInfo serviceInfo = parseServiceXml(record); if (!serviceInfo.isValid()) - return; + continue; // Don't need to apply uuidFilter because Bluez 4 applies // search pattern during DiscoverServices() call |