From 743841731e553a5f5c0ea3504ea4e77398b512f1 Mon Sep 17 00:00:00 2001 From: TheApadayo Date: Mon, 19 Jun 2017 15:44:59 -0400 Subject: [PATCH] [Download] Always set private state --- src/Components/Modules/Download.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Components/Modules/Download.cpp b/src/Components/Modules/Download.cpp index 27d1439a..207de653 100644 --- a/src/Components/Modules/Download.cpp +++ b/src/Components/Modules/Download.cpp @@ -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); }