From fad9bac338a30a26720bf032f29d7761544dad8f Mon Sep 17 00:00:00 2001 From: "Nathan S. Evans" Date: Fri, 19 Nov 2010 14:44:50 +0000 Subject: possible fix for timing issue (causing missed peer connect events) in testing --- src/testing/testing.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/testing/testing.c b/src/testing/testing.c index 719903147..0204f311b 100644 --- a/src/testing/testing.c +++ b/src/testing/testing.c @@ -1412,6 +1412,7 @@ notify_connect_result (void *cls, GNUNET_CORE_disconnect (ctx->d1core); ctx->d1core = NULL; } + ctx->d1core_ready = GNUNET_NO; #if CONNECT_CORE2 if (ctx->d2core != NULL) { @@ -1696,14 +1697,10 @@ reattempt_daemons_connect (void *cls, #endif GNUNET_assert (ctx->d1core == NULL); - + ctx->d1core_ready = GNUNET_NO; ctx->d1core = GNUNET_CORE_connect (ctx->d1->cfg, 1, -#if NO_MORE_TIMEOUT_FIXME - GNUNET_TIME_absolute_get_remaining - (ctx->timeout), -#endif ctx, - NULL, + &core_init_notify, &connect_notify, NULL, NULL, NULL, GNUNET_NO, NULL, GNUNET_NO, no_handlers); -- cgit v1.2.3