From 08fcfc92b03ea53982aad11b364f6fdc56688c26 Mon Sep 17 00:00:00 2001 From: Bart Polot Date: Mon, 16 Dec 2013 19:20:46 +0000 Subject: [PATCH] - fix timing out of connections --- src/mesh/gnunet-service-mesh_connection.c | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/src/mesh/gnunet-service-mesh_connection.c b/src/mesh/gnunet-service-mesh_connection.c index 12b6f74af..27698ec4a 100644 --- a/src/mesh/gnunet-service-mesh_connection.c +++ b/src/mesh/gnunet-service-mesh_connection.c @@ -1045,13 +1045,14 @@ connection_fwd_timeout (void *cls, c->fwd_maintenance_task = GNUNET_SCHEDULER_NO_TASK; if (0 != (tc->reason & GNUNET_SCHEDULER_REASON_SHUTDOWN)) return; - LOG (GNUNET_ERROR_TYPE_DEBUG, - "Connection %s[%X] FWD timed out. Destroying.\n", - GMT_2s (c->t), - c->id); + LOG (GNUNET_ERROR_TYPE_DEBUG, "Connection %s FWD timed out. Destroying.\n", + GMC_2s (c); if (GMC_is_origin (c, GNUNET_YES)) /* If local, leave. */ + { + GNUNET_break (0); return; + } GMC_destroy (c); } @@ -1074,12 +1075,14 @@ connection_bck_timeout (void *cls, if (0 != (tc->reason & GNUNET_SCHEDULER_REASON_SHUTDOWN)) return; - LOG (GNUNET_ERROR_TYPE_DEBUG, - "Connection %s[%X] FWD timed out. Destroying.\n", - GMT_2s (c->t), c->id); + LOG (GNUNET_ERROR_TYPE_DEBUG, "Connection %s BCK timed out. Destroying.\n", + GMC_2s (c)); if (GMC_is_origin (c, GNUNET_NO)) /* If local, leave. */ + { + GNUNET_break (0); return; + } GMC_destroy (c); } -- 2.25.1