summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimur Pocheptsov <timur.pocheptsov@theqtcompany.com>2016-04-04 10:05:51 +0200
committerTimur Pocheptsov <timur.pocheptsov@theqtcompany.com>2016-04-04 13:49:40 +0000
commit1f83f647a62e6f0ee1fd5eaf3e48d28c3a4f01b4 (patch)
treee370ef3ed5bb44f2cf093bf2c70ac3c61e03c9f6
parent80b6557be3a23a5118ddf8c4b68bc28b66f52b49 (diff)
OSXBTCentralManager - fix details discovery (iOS/OS X)
-serviceForUUID: fails to find included service and returns a nil for a valid service previously discovered. Task-number: QTBUG-52324 Change-Id: I9f4f8b1f3d3a78879344ace0170e23c03921d648 Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
-rw-r--r--src/bluetooth/osx/osxbtcentralmanager.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bluetooth/osx/osxbtcentralmanager.mm b/src/bluetooth/osx/osxbtcentralmanager.mm
index f96da5c6..6afe03c0 100644
--- a/src/bluetooth/osx/osxbtcentralmanager.mm
+++ b/src/bluetooth/osx/osxbtcentralmanager.mm
@@ -873,7 +873,7 @@ QT_USE_NAMESPACE
CBService *const s = [toVisit objectAtIndex:i];
if (equal_uuids(s.UUID, qtUuid))
return s;
- if ([visitedNodes containsObject:s] && s.includedServices && s.includedServices.count) {
+ if (![visitedNodes containsObject:s] && s.includedServices && s.includedServices.count) {
[visitedNodes addObject:s];
[toVisitNext addObjectsFromArray:s.includedServices];
}