Start sockets before starting the service 68/209968/1
authorKrzysztof Jackiewicz <k.jackiewicz@samsung.com>
Fri, 12 Jul 2019 14:45:54 +0000 (16:45 +0200)
committerKrzysztof Jackiewicz <k.jackiewicz@samsung.com>
Fri, 12 Jul 2019 14:57:23 +0000 (16:57 +0200)
Change-Id: I154c3e208bac37aec7d80156a3623909c00ac891

src/common/service_manager.cpp

index c571d5f..4441ace 100644 (file)
@@ -283,10 +283,10 @@ void ServiceManager::executeMethod(const std::string &method, const std::string
 
 void ServiceManager::startService(bool withSockets)
 {
-    executeMethod("StartUnit", m_serviceName);
     if (withSockets)
         for (const auto &socket : m_socketsNames)
             executeMethod("StartUnit", socket);
+    executeMethod("StartUnit", m_serviceName);
 }
 
 void ServiceManager::stopService(bool withSockets)