aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Tölke <toelke@in.tum.de>2011-06-15 07:15:49 +0000
committerPhilipp Tölke <toelke@in.tum.de>2011-06-15 07:15:49 +0000
commitc1d8488cc700dc12c9647140150c52a88bd6b666 (patch)
tree31083587d008f6c2445d06ab7ae2435d26acd45b
parent67cdbe7e2c5feb50fa32fa8a39cab83b8ae3fb60 (diff)
downloadgnunet-c1d8488cc700dc12c9647140150c52a88bd6b666.tar.gz
gnunet-c1d8488cc700dc12c9647140150c52a88bd6b666.zip
Do not connect to self when you find that another peer can handle an application-type
-rw-r--r--src/mesh/mesh_api.c2
1 files changed, 1 insertions, 1 deletions
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,
496 for (i = element->type_head; i != NULL; i = i->next) 496 for (i = element->type_head; i != NULL; i = i->next)
497 if (application_type == i->type) 497 if (application_type == i->type)
498 return GNUNET_MESH_peer_request_connect_all (handle, timeout, 1, 498 return GNUNET_MESH_peer_request_connect_all (handle, timeout, 1,
499 &handle->myself, 499 &element->peer,
500 connect_handler, 500 connect_handler,
501 disconnect_handler, 501 disconnect_handler,
502 handler_cls); 502 handler_cls);