mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-12-26 04:11:18 +00:00
Merge branch 'remove-download-file' into 'awful-mix'
Remove the correct file when http download fails See merge request SinnamonLat/Kart-Public!9
This commit is contained in:
commit
bf1060f7ac
1 changed files with 4 additions and 4 deletions
|
@ -1145,8 +1145,6 @@ void CURLGetFile(void)
|
|||
{
|
||||
if (m->data.result != 0)
|
||||
{
|
||||
nameonly(curl_realname);
|
||||
CONS_Printf(M_GetText("Failed to download %s...\n"), curl_realname);
|
||||
curl_curfile->status = FS_FALLBACK;
|
||||
curl_curfile->currentsize = curl_origfilesize;
|
||||
curl_curfile->totalsize = curl_origtotalfilesize;
|
||||
|
@ -1154,7 +1152,9 @@ void CURLGetFile(void)
|
|||
fclose(curl_curfile->file);
|
||||
remove(curl_curfile->filename);
|
||||
curl_curfile->file = NULL;
|
||||
nameonly(curl_curfile->filename);
|
||||
//nameonly(curl_curfile->filename);
|
||||
nameonly(curl_realname);
|
||||
CONS_Printf(M_GetText("Failed to download %s...\n"), curl_realname);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -1181,4 +1181,4 @@ void CURLGetFile(void)
|
|||
curl_global_cleanup();
|
||||
}
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue