bugfix: flosight

This commit is contained in:
sairajzero 2021-06-05 13:27:47 +05:30
parent 6d113e1f4e
commit 64f9967172

View File

@ -8272,7 +8272,7 @@
fetch_retry: function (apicall) {
return new Promise((resolve, reject) => {
this.serverList.splice(this.curPos, 1);
this.curPos = floCrypto.randInt(0, this.serverList.length)
this.curPos = floCrypto.randInt(0, this.serverList.length - 1)
this.fetch_api(apicall)
.then(result => resolve(result))
.catch(error => reject(error));