From c1d8488cc700dc12c9647140150c52a88bd6b666 Mon Sep 17 00:00:00 2001 From: Philipp Tölke Date: Wed, 15 Jun 2011 07:15:49 +0000 Subject: Do not connect to self when you find that another peer can handle an application-type --- src/mesh/mesh_api.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesh/mesh_api.c b/src/mesh/mesh_api.c index 996c8303c..57bea77e1 100644 --- a/src/mesh/mesh_api.c +++ b/src/mesh/mesh_api.c @@ -496,7 +496,7 @@ GNUNET_MESH_peer_request_connect_by_type (struct GNUNET_MESH_Handle *handle, for (i = element->type_head; i != NULL; i = i->next) if (application_type == i->type) return GNUNET_MESH_peer_request_connect_all (handle, timeout, 1, - &handle->myself, + &element->peer, connect_handler, disconnect_handler, handler_cls); -- cgit v1.2.3