From 562b01056819a14344476553d1e8a0c32412b977 Mon Sep 17 00:00:00 2001 From: Bart Polot Date: Mon, 21 Oct 2013 15:27:32 +0000 Subject: [PATCH] - dont send connection broken on terminal peers --- src/mesh/gnunet-service-mesh_connection.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mesh/gnunet-service-mesh_connection.c b/src/mesh/gnunet-service-mesh_connection.c index b15054a2b..dff8b1de1 100644 --- a/src/mesh/gnunet-service-mesh_connection.c +++ b/src/mesh/gnunet-service-mesh_connection.c @@ -2013,14 +2013,14 @@ GMC_notify_broken (struct MeshConnection *c, fwd = peer == get_prev_hop (c); - send_broken (c, &my_full_id, GMP_get_id (peer), fwd); connection_cancel_queues (c, !fwd); - if (GMC_is_terminal (c, fwd)) + if (GNUNET_YES == GMC_is_terminal (c, fwd)) { /* Local shutdown, no one to notify about this. */ GMC_destroy (c); return; } + send_broken (c, &my_full_id, GMP_get_id (peer), fwd); /* Connection will have at least one pending message * (the one we just scheduled), so no point in checking whether to -- 2.25.1