Change-Id: Ia37808dcbd8cacda6a6e495c6925294dbed9a6af
Signed-off-by: Hyunho Kang <hhstark.kang@samsung.com>
ret = bundle_get_byte(b, WIDGET_K_PERIOD, (void **)&period,
&size);
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,
instance_data->period = *period;
instance_data->periodic_timer = g_timeout_add_seconds(
instance_data->period,