[Download] Always set private state

This commit is contained in:
TheApadayo 2017-06-19 15:44:59 -04:00
parent 491cf4caf8
commit 743841731e

View File

@ -38,8 +38,6 @@ namespace Components
Party::ConnectError("A password is required to connect to this server!");
return;
}
Download::CLDownload.isPrivate = needPassword;
Download::CLDownload.hashedPassword = Utils::Cryptography::SHA256::Compute(pass);
}
@ -51,6 +49,7 @@ namespace Components
Download::CLDownload.lastTimeStamp = 0;
Download::CLDownload.downBytes = 0;
Download::CLDownload.timeStampBytes = 0;
Download::CLDownload.isPrivate = needPassword;
Download::CLDownload.target = Party::Target();
Download::CLDownload.thread = std::thread(Download::ModDownloader, &Download::CLDownload);
}