From 0269a60671f9f56c6628f55d0eb69f9aa1bb2197 Mon Sep 17 00:00:00 2001 From: "saerome.kim" Date: Tue, 6 Feb 2018 18:10:01 +0900 Subject: [PATCH] mot-agent: make mot-agent return 'device busy error' when discovring MOT devices. Signed-off-by: saerome.kim --- src/mot-agent/ma-subowner.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) mode change 100644 => 100755 src/mot-agent/ma-subowner.c diff --git a/src/mot-agent/ma-subowner.c b/src/mot-agent/ma-subowner.c old mode 100644 new mode 100755 index bb9c350..5ee81b4 --- a/src/mot-agent/ma-subowner.c +++ b/src/mot-agent/ma-subowner.c @@ -2528,13 +2528,11 @@ int ma_request_disc_mot_enb_devs(ma_service *service, int timeout) MA_LOGD("[IPC] Discovery MOT enabled devices"); /* If we are working now? */ - /* if (g_atomic_int_get(&service->pending)) return MA_ERROR_IN_PROGRESS; - */ /* Set d2ds status 'pending' */ - //g_atomic_int_set(&service->pending, 1); + g_atomic_int_set(&service->pending, 1); ret = _disc_mot_enb_devs(service, timeout); @@ -2550,13 +2548,11 @@ int ma_request_disc_owned_devs(ma_service *service, int timeout) MA_LOGD("[IPC] Discovery Owned devices"); /* If we are working now? */ - /* if (g_atomic_int_get(&service->pending)) return MA_ERROR_IN_PROGRESS; - */ /* Set d2ds status 'pending' */ - //g_atomic_int_set(&service->pending, 1); + g_atomic_int_set(&service->pending, 1); ret = _disc_owned_devs(service, timeout); -- 2.7.4