summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJürgen Gehring <juergen.gehring@bmw.de>2015-04-22 06:07:13 -0700
committerJürgen Gehring <juergen.gehring@bmw.de>2015-04-22 06:07:13 -0700
commitb51ddf0e8f92d0269a0d6a13b1e700eb7e2009e8 (patch)
tree03ff39c251043524dd9673e37ed31cc26f87d2de
parenteee3df492975efa18d165a0efb3c60a26d5e2e69 (diff)
downloadgenivi-common-api-dbus-runtime-2.1.6-p4.tar.gz
stopDispatching_ is now initialised before thread is created2.1.6-p4
-rw-r--r--src/CommonAPI/DBus/DBusConnection.cpp2
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);