Need to keep the metadata file around until upload is complete

This commit is contained in:
Asher Baker 2015-10-23 12:11:16 +01:00
parent 45fbcc5563
commit fd91ed3fec

View File

@ -228,7 +228,6 @@ void UploadCrashDump(const char *path)
strcat(metapath, ".txt");
if (libsys->PathExists(metapath)) {
form->AddFile("upload_file_metadata", metapath);
unlink(metapath);
}
MemoryDownloader data;
@ -244,6 +243,10 @@ void UploadCrashDump(const char *path)
printf(">>> UPLOADED CRASH DUMP");
printf("%s", data.GetBuffer());
}
if (libsys->PathExists(metapath)) {
unlink(metapath);
}
}
void Accelerator::OnCoreMapStart(edict_t *pEdictList, int edictCount, int clientMax)