Fix periodic update timer bug
[platform/core/appfw/appcore-widget.git] / src / base / widget_base.c
index bf5de25..171e37c 100644 (file)
@@ -1393,7 +1393,8 @@ static void __multiwindow_instance_create(
 
                ret = bundle_get_byte(b, WIDGET_K_PERIOD, (void **)&period,
                                &size);
-               if (ret == BUNDLE_ERROR_NONE) {
+               if (ret == BUNDLE_ERROR_NONE && *period > 0) {
+                       LOGI("set periodic update timer (%lf)", *period);
                        instance_data->period = *period;
                        instance_data->periodic_timer = g_timeout_add_seconds(
                                        instance_data->period,