diff --git a/www/res/js/modules/usimp.js b/www/res/js/modules/usimp.js index 6c65e43..016dda8 100644 --- a/www/res/js/modules/usimp.js +++ b/www/res/js/modules/usimp.js @@ -234,8 +234,12 @@ export class Session { }).then(response => { return response.json(); }).then(response => { - func(response); this.subscribe(func); + func(response); + }).catch(() => { + setTimeout(() => { + this.subscribe(func); + }, 1000); }); } }