mirror of
https://github.com/BeamMP/BeamMP-Launcher.git
synced 2025-07-01 15:36:10 +00:00
Check download confirmation packet
This commit is contained in:
parent
25a1061700
commit
4de0bc9a40
@ -557,6 +557,12 @@ void NewSyncResources(SOCKET Sock, const std::string& Mods, const std::vector<Mo
|
||||
break;
|
||||
}
|
||||
|
||||
if (Data != "AG") {
|
||||
UUl("Received corrupted download confirmation, aborting download.");
|
||||
Terminate = true;
|
||||
break;
|
||||
}
|
||||
|
||||
std::string Name = std::to_string(ModNo) + "/" + std::to_string(TotalMods) + ": " + FName;
|
||||
|
||||
std::vector<char> DownloadedFile = SingleNormalDownload(Sock, ModInfoIter->FileSize, Name);
|
||||
|
Loading…
x
Reference in New Issue
Block a user