diff options
Diffstat (limited to 'src/testbed/test_testbed_api_controllerlink.c')
-rw-r--r-- | src/testbed/test_testbed_api_controllerlink.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/testbed/test_testbed_api_controllerlink.c b/src/testbed/test_testbed_api_controllerlink.c index cea04cb633..7bcb8b5a7c 100644 --- a/src/testbed/test_testbed_api_controllerlink.c +++ b/src/testbed/test_testbed_api_controllerlink.c @@ -652,6 +652,13 @@ static void host_habitable_cb (void *cls, const struct GNUNET_TESTBED_Host *_host, int status) { hc_handle = NULL; + if (GNUNET_NO == status) + { + LOG (GNUNET_ERROR_TYPE_ERROR, "Cannot start testbed on localhost\n"); + GNUNET_SCHEDULER_cancel (abort_task); + abort_task = GNUNET_SCHEDULER_add_now (&do_abort, NULL); + return; + } cp = GNUNET_TESTBED_controller_start ("127.0.0.1", host, cfg, status_cb, NULL); } |