From ab3996be3198467e380c05ad85b2ea40b5b864f5 Mon Sep 17 00:00:00 2001 From: Bart Polot Date: Wed, 4 Sep 2013 17:09:49 +0000 Subject: [PATCH] - fix neighbor disconnection notifications --- src/mesh/gnunet-service-mesh-enc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mesh/gnunet-service-mesh-enc.c b/src/mesh/gnunet-service-mesh-enc.c index ec3f53aba..762fd3e6d 100644 --- a/src/mesh/gnunet-service-mesh-enc.c +++ b/src/mesh/gnunet-service-mesh-enc.c @@ -4705,13 +4705,13 @@ connection_broken (void *cls, fwd = peer == connection_get_prev_hop (c); + connection_cancel_queues (c, !fwd); if (connection_is_terminal (c, fwd)) { - /* Local shutdown: no point in iterating anymore */ + /* Local shutdown, no one to notify about this. */ connection_destroy (c); - return GNUNET_NO; + return GNUNET_YES; } - connection_cancel_queues (c, !fwd); msg.header.size = htons (sizeof (struct GNUNET_MESH_ConnectionBroken)); msg.header.type = htons (GNUNET_MESSAGE_TYPE_MESH_CONNECTION_BROKEN); -- 2.25.1