Fix permanent exit logic
authorhyunho <hhstark.kang@samsung.com>
Thu, 3 May 2018 09:47:14 +0000 (18:47 +0900)
committerhyunho <hhstark.kang@samsung.com>
Thu, 3 May 2018 11:18:33 +0000 (20:18 +0900)
Change-Id: I8eacc2f5f3e07a02d868d572992b1b1388c4b8bd
Signed-off-by: hyunho <hhstark.kang@samsung.com>
src/base/widget_base.c

index a1aecc8..0eda5cc 100644 (file)
@@ -779,7 +779,7 @@ EXPORT_API int widget_base_exit(void)
        int ret;
 
        appcore_multiwindow_base_exit();
-       if (appcore_multiwindow_base_instance_get_cnt() != 0 && __is_permanent) {
+       if (appcore_multiwindow_base_instance_get_cnt() == 0 && __is_permanent) {
                ret = aul_notify_exit();
                aul_widget_write_log(LOG_TAG, "[%s:%d] permanent exit : %d",
                        __FUNCTION__, __LINE__, ret);