diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/mesh/gnunet-service-mesh_connection.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/mesh/gnunet-service-mesh_connection.c b/src/mesh/gnunet-service-mesh_connection.c index 52d5edeca..04f1e07c4 100644 --- a/src/mesh/gnunet-service-mesh_connection.c +++ b/src/mesh/gnunet-service-mesh_connection.c | |||
@@ -639,7 +639,6 @@ get_prev_hop (const struct MeshConnection *c) | |||
639 | { | 639 | { |
640 | GNUNET_PEER_Id id; | 640 | GNUNET_PEER_Id id; |
641 | 641 | ||
642 | LOG (GNUNET_ERROR_TYPE_DEBUG, "Get prev hop, own pos %u\n", c->own_pos); | ||
643 | if (0 == c->own_pos || c->path->length < 2) | 642 | if (0 == c->own_pos || c->path->length < 2) |
644 | id = c->path->peers[0]; | 643 | id = c->path->peers[0]; |
645 | else | 644 | else |
@@ -1154,9 +1153,9 @@ register_neighbors (struct MeshConnection *c) | |||
1154 | GNUNET_STATISTICS_update (stats, "# bad paths", 1, GNUNET_NO); | 1153 | GNUNET_STATISTICS_update (stats, "# bad paths", 1, GNUNET_NO); |
1155 | 1154 | ||
1156 | LOG (GNUNET_ERROR_TYPE_DEBUG, " register neighbors failed\n"); | 1155 | LOG (GNUNET_ERROR_TYPE_DEBUG, " register neighbors failed\n"); |
1157 | LOG (GNUNET_ERROR_TYPE_DEBUG, " prev: %s, %d\n", | 1156 | LOG (GNUNET_ERROR_TYPE_DEBUG, " prev: %s, neighbor: %d\n", |
1158 | GMP_2s (prev_peer), GMP_is_neighbor (prev_peer)); | 1157 | GMP_2s (prev_peer), GMP_is_neighbor (prev_peer)); |
1159 | LOG (GNUNET_ERROR_TYPE_DEBUG, " next: %s, %d\n", | 1158 | LOG (GNUNET_ERROR_TYPE_DEBUG, " next: %s, neighbor: %d\n", |
1160 | GMP_2s (next_peer), GMP_is_neighbor (next_peer)); | 1159 | GMP_2s (next_peer), GMP_is_neighbor (next_peer)); |
1161 | return GNUNET_SYSERR; | 1160 | return GNUNET_SYSERR; |
1162 | } | 1161 | } |
@@ -1180,11 +1179,17 @@ unregister_neighbors (struct MeshConnection *c) | |||
1180 | 1179 | ||
1181 | peer = get_next_hop (c); | 1180 | peer = get_next_hop (c); |
1182 | if (GNUNET_OK != GMP_remove_connection (peer, c)) | 1181 | if (GNUNET_OK != GMP_remove_connection (peer, c)) |
1182 | { | ||
1183 | GNUNET_break (MESH_CONNECTION_NEW == c->state); | 1183 | GNUNET_break (MESH_CONNECTION_NEW == c->state); |
1184 | LOG (GNUNET_ERROR_TYPE_ERROR, " cstate: %u\n", c->state); | ||
1185 | } | ||
1184 | 1186 | ||
1185 | peer = get_prev_hop (c); | 1187 | peer = get_prev_hop (c); |
1186 | if (GNUNET_OK != GMP_remove_connection (peer, c)) | 1188 | if (GNUNET_OK != GMP_remove_connection (peer, c)) |
1189 | { | ||
1187 | GNUNET_break (MESH_CONNECTION_NEW == c->state); | 1190 | GNUNET_break (MESH_CONNECTION_NEW == c->state); |
1191 | LOG (GNUNET_ERROR_TYPE_ERROR, " cstate: %u\n", c->state); | ||
1192 | } | ||
1188 | } | 1193 | } |
1189 | 1194 | ||
1190 | 1195 | ||