We maintain the CBCentralManager in a retained property, which we nil when we're done processing the callbacks. But the manager may still be kept alive by other parts of the system, resulting in callbacks to our delegate, where we would assert on the check that the delegate callback manager matched our stored manager. The conditions for the assert to occur: - debug build (Q_ASSERT) - permissions are actually requested - bluetooth is toggled ON or OFF This patch fixes this so that the listening delegate is nil'd and therefore no additional callbacks are received. Pick-to: 6.7 6.5 Change-Id: I1439881fd55bdfd42bc27ee57f26826fc66c3d85 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io> (cherry picked from commit b45d26f59368f530330b7d547846b5a74d80d585) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
…
Description
Languages
C++
84.3%
HTML
4.9%
C
3.9%
CMake
3.6%
Objective-C++
2%
Other
0.8%