Stop auto cacher from starting after being canceled from joining a world

This commit is contained in:
Natsumi
2021-09-03 16:54:56 +12:00
parent babc6e21f7
commit 181210b7b0

View File

@@ -13908,6 +13908,8 @@ speechSynthesis.getVoices();
});
};
$app.data.cacheAutoDownloadHistory = new Set();
$app.methods.downloadVRChatCache = async function () {
if (this.downloadQueue.size === 0) {
return;
@@ -13957,6 +13959,16 @@ speechSynthesis.getVoices();
this.downloadVRChatCache();
return;
}
if (
this.downloadCurrent.type === 'Auto' &&
this.cacheAutoDownloadHistory.has(assetUrl)
) {
this.downloadCurrent = {};
this.downloadInProgress = false;
this.downloadVRChatCache();
return;
}
this.cacheAutoDownloadHistory.add(assetUrl);
try {
var args = await API.getBundles(fileId);
} catch (err) {