Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Return 0 on failure.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Mon, 22 Feb 2021 09:04:45 +0000 (10:04 +0100)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Mon, 22 Feb 2021 09:04:45 +0000 (10:04 +0100)
examples/c/dht-pastry/dht-pastry.c

index 8953de4..9436930 100644 (file)
@@ -424,6 +424,7 @@ static int join(const_node_t node)
   if (err == SG_ERROR_TIMEOUT) {
     XBT_DEBUG("Timeout expired when joining ring with node %d", node->known_id);
     message_free(request);
+    return 0;
   }
 
   return 1;