From ada02fd08406a01c317f9bd182991be12894d2b3 Mon Sep 17 00:00:00 2001 From: Bart Polot Date: Sat, 30 Nov 2013 01:17:20 +0000 Subject: [PATCH] - code cleanup --- src/mesh/gnunet-service-mesh_connection.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/mesh/gnunet-service-mesh_connection.c b/src/mesh/gnunet-service-mesh_connection.c index 409172c34..580595ffb 100644 --- a/src/mesh/gnunet-service-mesh_connection.c +++ b/src/mesh/gnunet-service-mesh_connection.c @@ -2699,13 +2699,16 @@ GMC_send_create (struct MeshConnection *connection) size = sizeof (struct GNUNET_MESH_ConnectionCreate); size += connection->path->length * sizeof (struct GNUNET_PeerIdentity); + LOG (GNUNET_ERROR_TYPE_DEBUG, "Send connection create\n"); - GMP_queue_add (get_next_hop (connection), NULL, - GNUNET_MESSAGE_TYPE_MESH_CONNECTION_CREATE, - size, connection, GNUNET_YES, &message_sent, NULL); LOG (GNUNET_ERROR_TYPE_DEBUG, " C_P+ %p %u (create)\n", connection, connection->pending_messages); connection->pending_messages++; + + GMP_queue_add (get_next_hop (connection), NULL, + GNUNET_MESSAGE_TYPE_MESH_CONNECTION_CREATE, + size, connection, GNUNET_YES, &message_sent, NULL); + state = GMT_get_cstate (connection->t); if (MESH_TUNNEL3_SEARCHING == state || MESH_TUNNEL3_NEW == state) GMT_change_cstate (connection->t, MESH_TUNNEL3_WAITING); -- 2.25.1