Explorar el Código

Added retry logic for system usage

Toby Chui hace 1 año
padre
commit
88d507fa6f
Se han modificado 1 ficheros con 6 adiciones y 0 borrados
  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
             });
         }