diff options
author | cosmix <cosmix@users.noreply.github.com> | 2020-04-15 21:47:55 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-15 21:47:55 +0300 |
commit | 3ce7fdc7197a555e608af9dbd146a1425b06748a (patch) | |
tree | f3cc2ba3952f95c168f4bf12f4b3711a4f4b76f5 /aclk | |
parent | 853b23745e7df2f163df1c0213c9de52394de36b (diff) |
Revert "Improved ACLK reconnection sequence (#8708)" (#8728)
This reverts commit 853b23745e7df2f163df1c0213c9de52394de36b.
Diffstat (limited to 'aclk')
-rw-r--r-- | aclk/agent_cloud_link.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/aclk/agent_cloud_link.c b/aclk/agent_cloud_link.c index 1c276f9919..a41d17e7bd 100644 --- a/aclk/agent_cloud_link.c +++ b/aclk/agent_cloud_link.c @@ -1257,11 +1257,11 @@ static void aclk_try_to_connect(char *hostname, char *port, int port_num) if (aclk_password == NULL) return; int rc; - aclk_connecting = 1; rc = mqtt_attempt_connection(hostname, port_num, aclk_username, aclk_password); if (unlikely(rc)) { error("Failed to initialize the agent cloud link library"); } + aclk_connecting = 1; } @@ -1355,8 +1355,6 @@ void *aclk_main(void *ptr) } _link_event_loop(); - if (unlikely(!aclk_connected)) - continue; /*static int stress_counter = 0; if (write_q_bytes==0 && stress_counter ++ >5) { |