mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-01 15:52:40 +08:00
Merge pull request #1710 from pandamicro/v1.5
Fix delayed sync task won’t trigger flow issue
This commit is contained in:
@@ -295,7 +295,15 @@ Downloader.prototype._handleLoadQueue = function () {
|
||||
if (!nextOne) {
|
||||
break;
|
||||
}
|
||||
this.handle(nextOne.item, nextOne.callback);
|
||||
var syncRet = this.handle(nextOne.item, nextOne.callback);
|
||||
if (syncRet !== undefined) {
|
||||
if (syncRet instanceof Error) {
|
||||
nextOne.callback(syncRet);
|
||||
}
|
||||
else {
|
||||
nextOne.callback(null, syncRet);
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user