From: Taesoo Jun Date: Wed, 1 Aug 2018 09:49:02 +0000 (+0900) Subject: Fix the variable in the critical sectionfor thread-safety X-Git-Tag: submit/tizen/20180803.081836^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F54%2F185654%2F1;p=platform%2Fframework%2Fweb%2Fdownload-provider.git Fix the variable in the critical sectionfor thread-safety Change-Id: Ia1578e05cdd78b82d5f24d8821c21f9302932b7a Signed-off-by: Taesoo Jun --- diff --git a/agent/download-agent-http-mgr.c b/agent/download-agent-http-mgr.c index 47d36ba..6331017 100755 --- a/agent/download-agent-http-mgr.c +++ b/agent/download-agent-http-mgr.c @@ -797,7 +797,7 @@ da_ret_t request_to_resume_http_download(da_info_t *da_info) DA_LOGD("Change state to HTTP_STATE_DOWNLOADING"); DA_MUTEX_LOCK(&(http_info->mutex_state)); http_info->state = HTTP_STATE_DOWNLOADING; - DA_LOGD("Changed state[%s]", __get_state_str(http_state)); + DA_LOGD("Changed state[%s]", __get_state_str(http_info->state)); DA_MUTEX_UNLOCK(&(http_info->mutex_state)); DA_LOGD("Complete to change state"); } else {