diff options
Diffstat (limited to 'src/CommonAPI/DBus/DBusConnection.cpp')
-rw-r--r-- | src/CommonAPI/DBus/DBusConnection.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/CommonAPI/DBus/DBusConnection.cpp b/src/CommonAPI/DBus/DBusConnection.cpp index 072853d..a2fba69 100644 --- a/src/CommonAPI/DBus/DBusConnection.cpp +++ b/src/CommonAPI/DBus/DBusConnection.cpp @@ -314,10 +314,10 @@ bool DBusConnection::connect(DBusError& dbusError, bool startDispatchThread) { initLibdbusSignalFilterAfterConnect(); + stopDispatching_ = !startDispatchThread; if (startDispatchThread) { dispatchThread_ = new std::thread(std::bind(&DBusConnection::dispatch, this->shared_from_this())); } - stopDispatching_ = !startDispatchThread; dbusConnectionStatusEvent_.notifyListeners(AvailabilityStatus::AVAILABLE); |