mirror of
https://gitee.com/openharmony/multimedia_av_codec
synced 2024-10-07 06:04:54 +00:00
commit
007b6e4e03
@ -312,7 +312,7 @@ void Downloader::Pause(bool isAsync)
|
||||
void Downloader::Cancel()
|
||||
{
|
||||
MEDIA_LOG_I("Cancel Begin");
|
||||
if (currentRequest_->retryTimes_ > 0) {
|
||||
if (currentRequest_ != nullptr && currentRequest_->retryTimes_ > 0) {
|
||||
currentRequest_->retryTimes_ = 0;
|
||||
}
|
||||
requestQue_->SetActive(false, true);
|
||||
|
Loading…
Reference in New Issue
Block a user