mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-14 14:32:15 -07:00
delete reply first if able
This commit is contained in:
parent
62af50e5af
commit
fe953bb3eb
1 changed files with 2 additions and 2 deletions
|
|
@ -115,8 +115,8 @@ void PictureLoaderWorkerWork::picDownloadFinished(QNetworkReply *reply)
|
||||||
<< "PictureLoader: [card: " << cardToDownload.getCard()->getName()
|
<< "PictureLoader: [card: " << cardToDownload.getCard()->getName()
|
||||||
<< " set: " << cardToDownload.getSetName() << "]: following "
|
<< " set: " << cardToDownload.getSetName() << "]: following "
|
||||||
<< (isFromCache ? "cached redirect" : "redirect") << " to " << redirectUrl.toDisplayString();
|
<< (isFromCache ? "cached redirect" : "redirect") << " to " << redirectUrl.toDisplayString();
|
||||||
emit requestImageDownload(redirectUrl, this);
|
|
||||||
reply->deleteLater();
|
reply->deleteLater();
|
||||||
|
emit requestImageDownload(redirectUrl, this);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -129,8 +129,8 @@ void PictureLoaderWorkerWork::picDownloadFinished(QNetworkReply *reply)
|
||||||
<< " set: " << cardToDownload.getSetName()
|
<< " set: " << cardToDownload.getSetName()
|
||||||
<< "]: Picture found, but blacklisted, will consider it as not found";
|
<< "]: Picture found, but blacklisted, will consider it as not found";
|
||||||
|
|
||||||
picDownloadFailed();
|
|
||||||
reply->deleteLater();
|
reply->deleteLater();
|
||||||
|
picDownloadFailed();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue