@cryptotaxi247 / netdata-1 / commits / 1d0eaeab3

claiming should wait for node id and status ONLINE only (#18816)

Costa Tsaousis committed Oct 18, 2024 at 21:48 UTC 1d0eaeab36808be3257c7ba69bd268d084eda37f
1 file changed +1 -1
src/claim/claim.c
+1 -1
@@ -197,7 +197,7 @@ CLOUD_STATUS claim_reload_and_wait_online(void) {
197 int ms = 0;
198 do {
199 status = cloud_status();
200 - if ((status == CLOUD_STATUS_ONLINE || status == CLOUD_STATUS_INDIRECT) && !UUIDiszero(localhost->host_id))
200 + if ((status == CLOUD_STATUS_ONLINE) && !UUIDiszero(localhost->node_id))
201 break;
202
203 sleep_usec(50 * USEC_PER_MS);