From 181210b7b0beb43d6aff3a785e254c1193701c2f Mon Sep 17 00:00:00 2001 From: Natsumi Date: Fri, 3 Sep 2021 16:54:56 +1200 Subject: [PATCH] Stop auto cacher from starting after being canceled from joining a world --- html/src/app.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/html/src/app.js b/html/src/app.js index 81d4ae85..e3559506 100644 --- a/html/src/app.js +++ b/html/src/app.js @@ -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) {