[Download] Small optimizations
This commit is contained in:
parent
c47663c470
commit
e311e77861
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user