#ifdef _RAF_SUPPORT
if (http_info->is_raf_mode_confirmed == DA_FALSE) {
#endif
- __check_before_downloading(da_info, http_state);
- ret = file_write_ongoing(file_info,
+ if (__check_before_downloading(da_info, http_state) == DA_RESULT_OK) {
+ ret = file_write_ongoing(file_info,
raw_data->body, raw_data->body_len);
- if (ret != DA_RESULT_OK)
- goto ERR;
+ if (ret != DA_RESULT_OK)
+ goto ERR;
#ifdef _RAF_SUPPORT
} else {
file_info->bytes_written_to_file =
file_info->is_updated = DA_TRUE;
}
#endif
- ret = send_client_update_progress_info(da_info);
+ ret = send_client_update_progress_info(da_info);
+ } else {
+ DA_LOGD("Do nothing! Wait for changing state properly");
+ }
break;
case HTTP_STATE_REDIRECTED:
DA_LOGV("http_state[%s]", __get_state_str(http_state));