diff options
author | harsha <harsha@140774ce-b5e7-0310-ab8b-a85725594a96> | 2012-12-03 17:09:01 +0000 |
---|---|---|
committer | harsha <harsha@140774ce-b5e7-0310-ab8b-a85725594a96> | 2012-12-03 17:09:01 +0000 |
commit | e6f8fd06592caf2cf1412d8f7ca6df2ee9c5f8f3 (patch) | |
tree | 7dbd78ea0e12045622428b7604b77c7b65980b4c /src/testbed/test_testbed_api_controllerlink.c | |
parent | d11b4b8b006a4dc5e40fac34076470846cb7633d (diff) |
- check the host compatibility check status
git-svn-id: https://gnunet.org/svn/gnunet@25202 140774ce-b5e7-0310-ab8b-a85725594a96
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); } |