[Download] Small optimizations

This commit is contained in:
Maurice Heumann 2019-12-25 21:53:15 +01:00
parent c47663c470
commit e311e77861

View File

@ -259,7 +259,7 @@ namespace Components
+ (download->isPrivate ? ("?password=" + download->hashedPassword) : ""); + (download->isPrivate ? ("?password=" + download->hashedPassword) : "");
} }
Logger::Print("Downloading from url %s", url.data()); Logger::Print("Downloading from url %s\n", url.data());
Download::FileDownload fDownload; Download::FileDownload fDownload;
fDownload.file = file; fDownload.file = file;
@ -277,7 +277,7 @@ namespace Components
while (fDownload.downloading && !fDownload.download->terminateThread) while (fDownload.downloading && !fDownload.download->terminateThread)
{ {
mg_mgr_poll(&download->mgr, 0); mg_mgr_poll(&download->mgr, 100);
} }
mg_mgr_free(&download->mgr); mg_mgr_free(&download->mgr);