Fixed Downloader.

This commit is contained in:
xawotihs
2016-06-19 12:08:45 +02:00
parent 4b68b636ce
commit fa2a2d51a5
2 changed files with 0 additions and 14 deletions
-13
View File
@@ -89,19 +89,6 @@ void DownloadRequest::onProgressCb(unsigned int handle, DownloadRequest* req, in
}
#endif
void DownloadRequest::waitUntilCompleted()
{
while(mDownloadStatus != DownloadRequest::DOWNLOAD_ERROR && mDownloadStatus != DownloadRequest::DOWNLOADED )
{
#ifdef __EMSCRIPTERN
emscripten_sleep_with_yield(100)
#else
sleep(100);
#endif
DebugTrace("DownloadRequest::waitUntilCompleted");
}
}
void DownloadRequest::processError(int errorCode, const char* errorText)
{
DebugTrace(errorText);