Fix BAD_CHECK_OF_WAIT_COND in cache agent 53/308553/3 accepted/tizen_unified accepted/tizen_unified_x tizen accepted/tizen/unified/20240328.123416 accepted/tizen/unified/x/20240401.142512
authorJaehyun Kim <jeik01.kim@samsung.com>
Wed, 27 Mar 2024 09:51:53 +0000 (18:51 +0900)
committerJaehyun Kim <jeik01.kim@samsung.com>
Wed, 27 Mar 2024 11:48:08 +0000 (20:48 +0900)
Change-Id: Ic7db1689563b71d885b9607b7268db93757f09b7
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
cache/cache-agent-storage.c
packaging/download-provider.spec

index 820e145..5a3d8eb 100755 (executable)
@@ -638,7 +638,8 @@ static void __handle_suspend_state(ca_info_t *ca_info)
        __call_paused_cb(ca_info);
 
        CA_MUTEX_LOCK(&(ca_info->mutex_state));
-       CA_COND_WAIT(&(ca_info->cond), &(ca_info->mutex_state));
+       while (ca_info->state == CA_STATE_PAUSED)
+               CA_COND_WAIT(&(ca_info->cond), &(ca_info->mutex_state));
        CA_MUTEX_UNLOCK(&(ca_info->mutex_state));
 }
 
index a9d30a6..d93d86f 100755 (executable)
@@ -1,6 +1,6 @@
 Name:       download-provider
 Summary:    Download the contents in background
-Version:    2.3.14
+Version:    2.3.15
 Release:    0
 Group:      Development/Libraries
 License:    Apache-2.0