mirror of https://github.com/axmolengine/axmol.git
Merge branch 'v3' of https://github.com/cocos2d/cocos2d-x into v3
This commit is contained in:
commit
8415f10498
|
@ -627,7 +627,13 @@ void Downloader::groupBatchDownload(const DownloadUnits &units)
|
||||||
FD_ZERO(&fdread);
|
FD_ZERO(&fdread);
|
||||||
FD_ZERO(&fdwrite);
|
FD_ZERO(&fdwrite);
|
||||||
FD_ZERO(&fdexcep);
|
FD_ZERO(&fdexcep);
|
||||||
|
// FIXME: when jenkins migrate to ubuntu, we should remove this hack code
|
||||||
|
#if (CC_TARGET_PLATFORM == CC_PLATFORM_LINUX)
|
||||||
|
curl_multi_fdset(multi_handle, &fdread, &fdwrite, &fdexcep, &maxfd);
|
||||||
|
rc = select(maxfd + 1, &fdread, &fdwrite, &fdexcep, &select_tv);
|
||||||
|
#else
|
||||||
rc = curl_multi_wait(multi_handle,nullptr, 0, MAX_WAIT_MSECS, &maxfd);
|
rc = curl_multi_wait(multi_handle,nullptr, 0, MAX_WAIT_MSECS, &maxfd);
|
||||||
|
#endif
|
||||||
|
|
||||||
switch(rc)
|
switch(rc)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue