Fix a bug about onboot option 14/168814/1
authorHwankyu Jhun <h.jhun@samsung.com>
Wed, 31 Jan 2018 07:07:23 +0000 (16:07 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Wed, 31 Jan 2018 07:07:23 +0000 (16:07 +0900)
Change-Id: Iae608408db233a362f235d626efbcf33a653350b
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
src/launchpad.c

index 5fe0aba..49f2f81 100755 (executable)
@@ -1395,6 +1395,9 @@ static void __update_slot(int type, bool app_exists)
                        __reset_slot(cpc);
                }
        } else {
+               if (!cpc->touched && !cpc->on_boot)
+                       return;
+
                if (cpc->pid == CANDIDATE_NONE &&
                                cpc->idle_checker == 0) {
                        _get_cpu_idle(&total, &idle);