commit b9dbc84ac5eff341860f09df948d1432e1ce7b6e
parent 5b1c12548e8114dd0afc236c8e2ea524075c31e9
Author: Bart Polot <bart@net.in.tum.de>
Date: Mon, 8 Jul 2013 12:58:14 +0000
- fix keepalive loop
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/mesh/gnunet-service-mesh.c b/src/mesh/gnunet-service-mesh.c
@@ -4005,7 +4005,7 @@ handle_mesh_keepalive (void *cls, const struct GNUNET_PeerIdentity *peer,
}
tunnel_reset_timeout (t);
- if (NULL != t->client || 0 == t->next_hop)
+ if (NULL != t->client || 0 == t->next_hop || myid == t->next_hop)
return GNUNET_OK;
GNUNET_STATISTICS_update (stats, "# keepalives forwarded", 1, GNUNET_NO);