diff options
author | Timur Pocheptsov <timur.pocheptsov@qt.io> | 2019-02-07 16:40:53 +0100 |
---|---|---|
committer | Timur Pocheptsov <timur.pocheptsov@qt.io> | 2019-02-07 17:37:15 +0000 |
commit | 7accd34495a8269f9b335446ae779bd56cd4c4c0 (patch) | |
tree | 302af0a1bc2792f83df63badcb82b60ca828bb46 /LICENSE.FDL | |
parent | 80a1346a139343b221d49b7c7b7fabcd55669a65 (diff) |
Bluetooth LE scan - fix a crash (CoreBluetooth)
1. When the central's state changes to powered off, we emit PoweredOffError
and QBluetoothDeviceDiscoveryAgent deletes Obj-C instance - a delegate
for CBCentralManager. But we can still have GDC timer waiting in a queue
and triggering the crash while using a dangling pointer. So we have to properly
cancel the timer.
2. CoreBluetooth under debugger warns about API misuse - calling stopScan,
apparently, is not allowed if CBCentralManager is in a state different
from 'powered on'.
Change-Id: Ib218105735995dc7988751fa04a6c76cab10cba8
Fixes: QTBUG-73140
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Diffstat (limited to 'LICENSE.FDL')
0 files changed, 0 insertions, 0 deletions