bugfix: flosight

This commit is contained in:
Sai Raj 2021-06-05 13:26:14 +05:30 committed by GitHub
parent 577743e0e4
commit ed4243f70c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10219,7 +10219,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));