Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Shutdown sensors when dying because there were not enough of them
[simgrid.git] / examples / amok / bandwidth / bandwidth.c
index 6d1eda4..c0f1eae 100644 (file)
@@ -80,6 +80,7 @@ int maestro(int argc,char *argv[]) {
      char *msg;
      asprintf(&msg,"Not enough peers arrived. Expected 2 got %ld",
              xbt_dynar_length(group));
+     amok_pm_group_shutdown("bandwidth");
      xbt_die(msg);
   }
   h1 = *(xbt_peer_t*) xbt_dynar_get_ptr(group, 0);