summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlex Blasche <alexander.blasche@theqtcompany.com>2015-12-23 10:23:01 +0100
committerAlex Blasche <alexander.blasche@theqtcompany.com>2015-12-23 09:42:02 +0000
commit5e2856bcbea2c9668fa1b02aa2278659e8d1da7b (patch)
tree2e6a70c70f7cbe76bcaa63a847166d21594d7544 /src
parent0e00dff9634b43311e0dc23ea81cbce024bdb84b (diff)
downloadqtconnectivity-5e2856bcbea2c9668fa1b02aa2278659e8d1da7b.tar.gz
OSX/iOS: Invalide QTLE services when remote device disconnects
So far, only a local disconnect triggered the invalidation process. Task-number: QTBUG-50125 Change-Id: I324e01c86eb0c7cc820e91a6f6d6d01fb23170ab Reviewed-by: Timur Pocheptsov <timur.pocheptsov@theqtcompany.com>
Diffstat (limited to 'src')
-rw-r--r--src/bluetooth/qlowenergycontroller_osx.mm1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bluetooth/qlowenergycontroller_osx.mm b/src/bluetooth/qlowenergycontroller_osx.mm
index e38442e2..bd9a99bb 100644
--- a/src/bluetooth/qlowenergycontroller_osx.mm
+++ b/src/bluetooth/qlowenergycontroller_osx.mm
@@ -225,6 +225,7 @@ void QLowEnergyControllerPrivateOSX::_q_disconnected()
controllerState = QLowEnergyController::UnconnectedState;
if (!isConnecting) {
+ invalidateServices();
emit q_ptr->stateChanged(QLowEnergyController::UnconnectedState);
emit q_ptr->disconnected();
}