Update Downloader-java.cpp (#11240)

This commit is contained in:
kenshin
2022-05-31 09:58:02 +08:00
committed by GitHub
parent fdc977ee78
commit bb611b381d
+1 -1
View File
@@ -230,7 +230,7 @@ void DownloaderJava::onFinishImpl(int taskId, int errCode, const char *errStr, c
ccstd::string str = (errStr ? errStr : "");
_taskMap.erase(iter);
onTaskFinish(*coTask->task,
errStr ? DownloadTask::ERROR_IMPL_INTERNAL : DownloadTask::ERROR_NO_ERROR,
(errStr || (errCode != 0))? DownloadTask::ERROR_IMPL_INTERNAL : DownloadTask::ERROR_NO_ERROR,
errCode,
str,
data);