summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/bluetooth/qlowenergycontroller_bluezdbus.cpp4
-rw-r--r--src/bluetooth/qlowenergycontroller_bluezdbus_p.h1
2 files changed, 1 insertions, 4 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,
diff --git a/src/bluetooth/qlowenergycontroller_bluezdbus_p.h b/src/bluetooth/qlowenergycontroller_bluezdbus_p.h
index 0e0bfcb5..4c0f5b74 100644
--- a/src/bluetooth/qlowenergycontroller_bluezdbus_p.h
+++ b/src/bluetooth/qlowenergycontroller_bluezdbus_p.h
@@ -142,7 +142,6 @@ private:
OrgFreedesktopDBusPropertiesInterface* deviceMonitor{};
bool pendingConnect = false;
- bool pendingDisconnect = false;
bool disconnectSignalRequired = false;
struct GattCharacteristic