Sfoglia il codice sorgente

Added retry logic for system usage

Toby Chui 1 anno fa
parent
commit
88d507fa6f
1 ha cambiato i file con 6 aggiunte e 0 eliminazioni
  1. 6 0
      web/SystemAO/info/taskManager.html

+ 6 - 0
web/SystemAO/info/taskManager.html

@@ -443,6 +443,12 @@
                         updateData();
                     }, 100);
                 },
+                error: function(){
+                    //Error, retry in 5 seconds
+                    setTimeout(function(){
+                        updateData();
+                    }, 5000);
+                },
                 timeout: 2000
             });
         }