diff options
author | jiyong.min <jiyong.min@samsung.com> | 2020-05-08 11:21:41 +0900 |
---|---|---|
committer | jiyong.min <jiyong.min@samsung.com> | 2020-05-08 11:32:16 +0900 |
commit | 2cc95949b97335efacb826ac39e573e327c8bbbc (patch) | |
tree | 96e8d5604582d8727914d32ee9d1e6d36a973d1e | |
parent | f7c3dafadc55c07f5c5f60d3e3c0a23df8b01b81 (diff) | |
download | media-controller-tizen_4.0.tar.gz media-controller-tizen_4.0.tar.bz2 media-controller-tizen_4.0.zip |
Remove checking initial value for 'connection_cnt'submit/tizen_4.0/20200508.030913accepted/tizen/4.0/unified/20200512.005047tizen_4.0accepted/tizen_4.0_unified
- If starting service was failed, it prevents the service from restarting.
Change-Id: I11e6b24ae5d3fc7f9b2cbc5b1c9b187fbc7363ad
-rwxr-xr-x | packaging/capi-media-controller.spec | 2 | ||||
-rwxr-xr-x | svc/daemon/media_controller_main.c | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/packaging/capi-media-controller.spec b/packaging/capi-media-controller.spec index 2577778..20514b7 100755 --- a/packaging/capi-media-controller.spec +++ b/packaging/capi-media-controller.spec @@ -1,6 +1,6 @@ Name: capi-media-controller Summary: A media controller library in Tizen Native API -Version: 0.1.61 +Version: 0.1.62 Release: 1 Group: Multimedia/API License: Apache-2.0 diff --git a/svc/daemon/media_controller_main.c b/svc/daemon/media_controller_main.c index 6b5cc50..f158967 100755 --- a/svc/daemon/media_controller_main.c +++ b/svc/daemon/media_controller_main.c @@ -31,9 +31,9 @@ void __mc_main_create_timer(int timer_id); gboolean __mc_main_check_connection(gpointer user_data) { - int connection_cnt = 0; - connection_cnt = mc_svc_get_connection_cnt(); - if ((connection_cnt == -1) || (connection_cnt > 0)) { + int connection_cnt = mc_svc_get_connection_cnt(); + + if (connection_cnt > 0) { mc_error("[No-error] Timer is Called but there is working Process, connection_cnt = %d", connection_cnt); __mc_main_create_timer(g_mc_timer_id); |