Browse Source

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

Costa Tsaousis 4 months ago
parent
commit
1d0eaeab36
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/claim/claim.c

+ 1 - 1
src/claim/claim.c

@@ -197,7 +197,7 @@ CLOUD_STATUS claim_reload_and_wait_online(void) {
         int ms = 0;
         do {
             status = cloud_status();
-            if ((status == CLOUD_STATUS_ONLINE || status == CLOUD_STATUS_INDIRECT) && !UUIDiszero(localhost->host_id))
+            if ((status == CLOUD_STATUS_ONLINE) && !UUIDiszero(localhost->node_id))
                 break;
 
             sleep_usec(50 * USEC_PER_MS);