From ccb6f3521d0b82177f48eae04a81b0d821595f66 Mon Sep 17 00:00:00 2001 From: Iwao AVE! Date: Mon, 14 Oct 2019 17:40:25 +0900 Subject: [PATCH] Load legacy props if http media request failed --- js/props.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/js/props.js b/js/props.js index 2215195..deec909 100644 --- a/js/props.js +++ b/js/props.js @@ -541,8 +541,13 @@ function loadProps(pids,fromSelf,callback) { } } }, - function(status) { // handle error, maybe retry upload - logmsg('Prop download failed (HTTP ERROR): '+status); + function(status) { + toLoad.props.map(p => cacheProps[p.id]).filter(p => p).forEach(aProp => { + if (aProp.rcounter === 0) { // only request legacy prop once. + palace.sendAssetQuery(aProp.id); + } + aProp.rcounter++; + }); } ); }