- send ping on rekey timeout
authorBart Polot <bart@net.in.tum.de>
Thu, 14 Nov 2013 15:56:06 +0000 (15:56 +0000)
committerBart Polot <bart@net.in.tum.de>
Thu, 14 Nov 2013 15:56:06 +0000 (15:56 +0000)
src/mesh/gnunet-service-mesh_tunnel.c

index 80a446ea372b532f86662f6ab582d22234c8c774..4033da4ca61db0425a17cdfe8f05be93005a79a3 100644 (file)
@@ -751,7 +751,7 @@ rekey_tunnel (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
                                                    UINT32_MAX);
   t->kx_ctx->d_key_old = t->d_key;
   send_ephemeral (t);
-  if (MESH_TUNNEL3_READY == t->state)
+  if (MESH_TUNNEL3_READY == t->state || MESH_TUNNEL3_REKEY == t->state)
   {
     send_ping (t);
     t->state = MESH_TUNNEL3_REKEY;