Fix issue that C# TC is not running sometimes due to restart 09/167709/1
authorsungwook79.park <sungwook79.park@samsung.com>
Fri, 19 Jan 2018 08:18:34 +0000 (17:18 +0900)
committersungwook79.park <sungwook79.park@samsung.com>
Fri, 19 Jan 2018 08:24:56 +0000 (17:24 +0900)
Change-Id: I0691cad89db6f62b7664921cd7800e2d50487016
Signed-off-by: sungwook79.park <sungwook79.park@samsung.com>
ism/src/isf_info_manager.cpp

index 14d24a8..9680d2c 100644 (file)
@@ -2772,9 +2772,12 @@ public:
                 String uuid = hiit->second.uuid;
                 HelperClientIndex::iterator it = m_helper_client_index.find (uuid);
 
+                String default_uuid = scim_global_config_read (String (SCIM_GLOBAL_CONFIG_DEFAULT_ISE_UUID), String (""));
                 if ((hiit->second.option & SCIM_HELPER_AUTO_RESTART) &&
-                    (it != m_helper_client_index.end () && it->second.ref > 0))
+                    (default_uuid.compare (uuid) == 0 || default_uuid.compare ("") == 0) &&
+                    (it != m_helper_client_index.end () && it->second.ref > 0)) {
                     restart = true;
+                }
 
                 m_helper_client_index.erase (uuid);
                 m_helper_info_repository.erase (hiit);