call stop presence detection only if started 38/214438/1
authorAbhay Agarwal <ay.agarwal@samsung.com>
Wed, 18 Sep 2019 10:49:20 +0000 (19:49 +0900)
committersaerome.kim <saerome.kim@samsung.com>
Mon, 23 Sep 2019 05:24:33 +0000 (14:24 +0900)
Change-Id: I569ea947646588105b5bf0cc7f987656f6e754cb
Signed-off-by: Abhay Agarwal <ay.agarwal@samsung.com>
packaging/capi-network-ua.spec
src/user-awareness-monitors.c

index 3adba065adb48b0f9c9b4b054878f4e852eeada2..7429cc5c666830d09c868040a8f76f190f1cb72f 100644 (file)
@@ -1,6 +1,6 @@
 Name: capi-network-ua
 Summary: User Awareness Framework CAPI
-Version: 0.9.1
+Version: 0.9.2
 Release: 1
 License: Apache-2.0
 Source0: %{name}-%{version}.tar.gz
index 2cac2c2fddcff99dcae77b0e67eadf11a23aa6de..727b820d6e6d7f85863a4901529e6ee29b66df86 100644 (file)
@@ -1573,8 +1573,9 @@ int ua_monitor_stop_absence_detection(ua_monitor_h handle)
                /* LCOV_EXCL_STOP */
        }
 
-       if (!monitor->presence_detection_started)
-               __ua_stop_monitoring(monitor->sensor_bitmask, monitor->service, UA_PRESENCE_DETECTION);
+       if (monitor->internal_presence_started)
+               if (!monitor->presence_detection_started)
+                       __ua_stop_monitoring(monitor->sensor_bitmask, monitor->service, UA_PRESENCE_DETECTION);
 
        if (monitor->absence_mode == UA_DETECT_MODE_ALL_SENSOR)
                __ua_monitor_internal_presence_unref(monitor);