From: Philipp Tölke Date: Wed, 15 Jun 2011 07:15:49 +0000 (+0000) Subject: Do not connect to self when you find that another peer can handle an application... X-Git-Tag: initial-import-from-subversion-38251~18168 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=c1d8488cc700dc12c9647140150c52a88bd6b666;p=oweals%2Fgnunet.git Do not connect to self when you find that another peer can handle an application-type --- 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);