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
-1
View File
@@ -102,7 +102,6 @@ public:
totalSize = mTotalSize; totalSize = mTotalSize;
currentSize = mCurrentSize; currentSize = mCurrentSize;
}; };
void waitUntilCompleted();
friend ostream& operator<<(ostream& out, const DownloadRequest& d); friend ostream& operator<<(ostream& out, const DownloadRequest& d);
friend istream& operator>>(istream&, DownloadRequest&); friend istream& operator>>(istream&, DownloadRequest&);
-13
View File
@@ -89,19 +89,6 @@ void DownloadRequest::onProgressCb(unsigned int handle, DownloadRequest* req, in
} }
#endif #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) void DownloadRequest::processError(int errorCode, const char* errorText)
{ {
DebugTrace(errorText); DebugTrace(errorText);