commit ab3996be3198467e380c05ad85b2ea40b5b864f5
parent 70c4c67934e3025953fdc4d9870c5a0d7ddedfaa
Author: Bart Polot <bart@net.in.tum.de>
Date: Wed, 4 Sep 2013 17:09:49 +0000
- fix neighbor disconnection notifications
Diffstat:
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
@@ -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);