[CID-1745069] Fix data race condition 11/304111/1 accepted/tizen_unified_riscv accepted/tizen/unified/20240111.161412 accepted/tizen/unified/riscv/20240115.113655
authorchaehee.hong <chaehee.hong@samsung.com>
Wed, 10 Jan 2024 07:27:09 +0000 (16:27 +0900)
committerchaehee.hong <chaehee.hong@samsung.com>
Wed, 10 Jan 2024 07:27:18 +0000 (16:27 +0900)
Change-Id: Ib4024a3d165b6c576dd147329f0485396ca9eecd

agent/download-agent-http-mgr.c

index 0fdd565..fad7fb8 100755 (executable)
@@ -519,7 +519,7 @@ da_ret_t request_http_download(da_info_t *da_info)
                DA_MUTEX_LOCK(&(http_info->mutex_state));
                http_state = http_info->state;
                DA_MUTEX_UNLOCK(&(http_info->mutex_state));
-               DA_LOGD("http_state[%s][%d]", __get_state_str(http_info->state), da_info->da_id);
+               DA_LOGD("http_state[%s][%d]", __get_state_str(http_state), da_info->da_id);
                switch (http_state) {
                case HTTP_STATE_READY_TO_DOWNLOAD:
                        DA_MUTEX_LOCK(&(http_info->mutex_state));