forceFetch callback when no fetch necessary

This commit is contained in:
abalabahaha
2016-02-20 22:25:53 -08:00
parent 0ec5d3e8d7
commit 91a05be386
2 changed files with 10 additions and 2 deletions

View File

@@ -356,7 +356,11 @@ var InternalClient = (function () {
this.chunkloaderCount[server.id] = Math.ceil(server.memberCount / 1000);
}
return new Promise(function (resolve, reject) {
_this4.chunkloaderCallback = resolve;
if (!server) {
resolve();
} else {
_this4.chunkloaderCallback = resolve;
}
});
};