Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Return 0 on failure.
[simgrid.git] / examples / c / dht-pastry / dht-pastry.c
index 8953de4db22fc67527e435451c009323bd346603..9436930beee9b289c67d7a46b2a75172d761139b 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;