diff options
Diffstat (limited to 'src/bluetooth/qlowenergycontroller_bluezdbus.cpp')
-rw-r--r-- | src/bluetooth/qlowenergycontroller_bluezdbus.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/bluetooth/qlowenergycontroller_bluezdbus.cpp b/src/bluetooth/qlowenergycontroller_bluezdbus.cpp index 16f03405..73fd94ae 100644 --- a/src/bluetooth/qlowenergycontroller_bluezdbus.cpp +++ b/src/bluetooth/qlowenergycontroller_bluezdbus.cpp @@ -194,7 +194,7 @@ void QLowEnergyControllerPrivateBluezDBus::resetController() jobs.clear(); invalidateServices(); - pendingConnect = pendingDisconnect = disconnectSignalRequired = false; + pendingConnect = disconnectSignalRequired = false; jobPending = false; } @@ -324,8 +324,6 @@ void QLowEnergyControllerPrivateBluezDBus::disconnectFromDevice() { setState(QLowEnergyController::ClosingState); - pendingDisconnect = true; - QDBusPendingReply<> reply = device->Disconnect(); QDBusPendingCallWatcher* watcher = new QDBusPendingCallWatcher(reply, this); connect(watcher, &QDBusPendingCallWatcher::finished, this, |