Fix permanent exit logic
[platform/core/appfw/appcore-widget.git] / src / base / widget_base.c
index e10fc17..2d7d29c 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);