commit | 659f28195cb1b56095dd57584da28224ddd47d09 | [log] [tgz] |
---|---|---|
author | Hyunsun Moon <hyunsun.moon@gmail.com> | Thu Jan 21 13:43:49 2021 -0800 |
committer | Hyunsun Moon <hyunsun.moon@gmail.com> | Thu Jan 21 13:43:49 2021 -0800 |
tree | 6e7c0d6e31c0eb75eb1a9aa7793043754acbd5c5 | |
parent | a40bda59209cefa3521da624a932692fa5baf497 [diff] |
Add sleep in the connection status checking loop Change-Id: Iee11f22775c9cc468b6ffea74bd5a75c17696ff2
diff --git a/edge-monitoring/agent_adb/edge_monitoring_agent_adb.py b/edge-monitoring/agent_adb/edge_monitoring_agent_adb.py index b0b258f..9f9bf75 100755 --- a/edge-monitoring/agent_adb/edge_monitoring_agent_adb.py +++ b/edge-monitoring/agent_adb/edge_monitoring_agent_adb.py
@@ -118,6 +118,7 @@ state = result.split("=")[1] if state == State.connected.value: break + time.sleep(1) retry_count -= 1 if not State.has_value(state):