summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjiyong.min <jiyong.min@samsung.com>2020-05-08 11:21:41 +0900
committerjiyong.min <jiyong.min@samsung.com>2020-05-08 11:32:16 +0900
commit2cc95949b97335efacb826ac39e573e327c8bbbc (patch)
tree96e8d5604582d8727914d32ee9d1e6d36a973d1e
parentf7c3dafadc55c07f5c5f60d3e3c0a23df8b01b81 (diff)
downloadmedia-controller-tizen_4.0.tar.gz
media-controller-tizen_4.0.tar.bz2
media-controller-tizen_4.0.zip
- If starting service was failed, it prevents the service from restarting. Change-Id: I11e6b24ae5d3fc7f9b2cbc5b1c9b187fbc7363ad
-rwxr-xr-xpackaging/capi-media-controller.spec2
-rwxr-xr-xsvc/daemon/media_controller_main.c6
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);