diff options
author | Sree Harsha Totakura <totakura@in.tum.de> | 2016-10-27 15:01:52 +0000 |
---|---|---|
committer | Sree Harsha Totakura <totakura@in.tum.de> | 2016-10-27 15:01:52 +0000 |
commit | a85d0779cb1dad2c5d2aecff2d5be96f1e11b665 (patch) | |
tree | b0569b02721fda8b8cd67776fdc800611fc88000 /src/testbed/testbed_api.c | |
parent | 251c9287514c0e3a2cf6a3f6f978a27a49e65085 (diff) | |
download | gnunet-a85d0779cb1dad2c5d2aecff2d5be96f1e11b665.tar.gz gnunet-a85d0779cb1dad2c5d2aecff2d5be96f1e11b665.zip |
propagate barrier status messages to sub controllers
Diffstat (limited to 'src/testbed/testbed_api.c')
-rw-r--r-- | src/testbed/testbed_api.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/testbed/testbed_api.c b/src/testbed/testbed_api.c index a019d9b64..ae40948b3 100644 --- a/src/testbed/testbed_api.c +++ b/src/testbed/testbed_api.c | |||
@@ -1310,7 +1310,13 @@ handle_barrier_status (void *cls, | |||
1310 | 1310 | ||
1311 | cleanup: | 1311 | cleanup: |
1312 | GNUNET_free_non_null (emsg); | 1312 | GNUNET_free_non_null (emsg); |
1313 | if (NULL != barrier) | 1313 | /** |
1314 | * Do not remove the barrier if we did not echo the status back; this is | ||
1315 | * required at the chained testbed controller setup to ensure the only the | ||
1316 | * test-driver echos the status and the controller hierarchy properly | ||
1317 | * propagates the status. | ||
1318 | */ | ||
1319 | if ((NULL != barrier) && (GNUNET_YES == barrier->echo)) | ||
1314 | GNUNET_TESTBED_barrier_remove_ (barrier); | 1320 | GNUNET_TESTBED_barrier_remove_ (barrier); |
1315 | } | 1321 | } |
1316 | 1322 | ||