From 475c66842ebf9374b2a3696fc90828fd4656bcf1 Mon Sep 17 00:00:00 2001 From: "Nathan S. Evans" Date: Mon, 1 Feb 2010 15:11:13 +0000 Subject: [PATCH] try connect fix, just because we have a neighbor in our list doesn't necessarily mean we can already talk to it. Functional bug apparently --- src/transport/transport_api.c | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/transport/transport_api.c b/src/transport/transport_api.c index 24775f89f..704ce8934 100644 --- a/src/transport/transport_api.c +++ b/src/transport/transport_api.c @@ -951,18 +951,6 @@ request_connect (void *cls, size_t size, void *buf) GNUNET_assert (th->notify_delay_task == GNUNET_SCHEDULER_NO_TASK); h = th->handle; - n = find_neighbour(h, &th->target); - - if (n != NULL) - { -#if DEBUG_TRANSPORT - GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, - "Asked to TRY_CONNECT to already connected peer!\n"); -#endif - return GNUNET_YES; - } - - if (buf == NULL) { #if DEBUG_TRANSPORT @@ -1653,7 +1641,6 @@ demultiplexer (void *cls, const struct GNUNET_MessageHeader *msg) "Do know neighbor, scheduling transmission!\n"); #endif n = find_neighbour(h, &cim->id); - GNUNET_assert(n != NULL); n->received_ack = GNUNET_YES; if (NULL != n->transmit_handle) { -- 2.25.1