Prevent IME from automatically restarting in on-demand mode 50/176750/1
authorInHong Han <inhong1.han@samsung.com>
Mon, 23 Apr 2018 07:17:12 +0000 (16:17 +0900)
committerInHong Han <inhong1.han@samsung.com>
Mon, 23 Apr 2018 07:18:01 +0000 (16:18 +0900)
Change-Id: Id0af6bfa447a0a73ef000a49ba2cf79fbe2bd682

ism/src/isf_info_manager.cpp

index bc330fd..3006799 100644 (file)
@@ -2807,7 +2807,9 @@ public:
                 m_helper_client_index.erase (uuid);
                 m_helper_info_repository.erase (hiit);
 
-                if (restart && !m_ise_exiting) {
+                bool launch_ise_on_request = false;
+                launch_ise_on_request = scim_global_config_read (String (SCIM_GLOBAL_CONFIG_LAUNCH_ISE_ON_REQUEST), launch_ise_on_request);
+                if (restart && !m_ise_exiting && !launch_ise_on_request) {
                     struct tms     tiks_buf;
                     static clock_t start_tiks = times (&tiks_buf);
                     static double  clock_tiks = (double)sysconf (_SC_CLK_TCK);