diff options
author | Hyunho Kang <hhstark.kang@samsung.com> | 2017-10-11 19:03:20 +0900 |
---|---|---|
committer | Hyunho Kang <hhstark.kang@samsung.com> | 2017-10-11 21:25:52 +0900 |
commit | dc07be609e116af96fdd8fab1828b377ed6de41f (patch) | |
tree | eed0f48ecce95fb921c9d956930eaf0c18836b6b | |
parent | a0ef7a2254cdf2641ced4f39ee4a4d233c60ddf9 (diff) | |
download | appcore-widget-dc07be609e116af96fdd8fab1828b377ed6de41f.tar.gz appcore-widget-dc07be609e116af96fdd8fab1828b377ed6de41f.tar.bz2 appcore-widget-dc07be609e116af96fdd8fab1828b377ed6de41f.zip |
Fix periodic update timer bug
Change-Id: Ia37808dcbd8cacda6a6e495c6925294dbed9a6af
Signed-off-by: Hyunho Kang <hhstark.kang@samsung.com>
-rw-r--r-- | src/base/widget_base.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/base/widget_base.c b/src/base/widget_base.c index bf5de25..171e37c 100644 --- a/src/base/widget_base.c +++ b/src/base/widget_base.c @@ -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, |