From: Bart Polot Date: Sat, 30 Nov 2013 01:17:20 +0000 (+0000) Subject: - code cleanup X-Git-Tag: initial-import-from-subversion-38251~5846 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=ada02fd08406a01c317f9bd182991be12894d2b3;p=oweals%2Fgnunet.git - code cleanup --- 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);