aboutsummaryrefslogtreecommitdiff
path: root/src/mesh/gnunet-service-mesh_tunnel.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesh/gnunet-service-mesh_tunnel.c')
-rw-r--r--src/mesh/gnunet-service-mesh_tunnel.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesh/gnunet-service-mesh_tunnel.c b/src/mesh/gnunet-service-mesh_tunnel.c
index 4c1eba895..d266a93fb 100644
--- a/src/mesh/gnunet-service-mesh_tunnel.c
+++ b/src/mesh/gnunet-service-mesh_tunnel.c
@@ -1172,7 +1172,8 @@ GMT_change_state (struct MeshTunnel3* t, enum MeshTunnel3State state)
1172 "Tunnel %s state is now %s\n", 1172 "Tunnel %s state is now %s\n",
1173 GMP_2s (t->peer), 1173 GMP_2s (t->peer),
1174 GMT_state2s (state)); 1174 GMT_state2s (state));
1175 if (MESH_TUNNEL3_WAITING == t->state && MESH_TUNNEL3_READY == state) 1175 if (myid != GMP_get_short_id(t->peer) &&
1176 MESH_TUNNEL3_WAITING == t->state && MESH_TUNNEL3_READY == state)
1176 { 1177 {
1177 rekey_tunnel (t, NULL); 1178 rekey_tunnel (t, NULL);
1178 } 1179 }