From e28f1b409bd3f3dbff7d4f331ea8a37603ba6d7c Mon Sep 17 00:00:00 2001 From: Matthias Wachs Date: Thu, 20 Mar 2014 09:05:01 +0000 Subject: [PATCH] remove testing breaks and add documentation for checks --- src/transport/gnunet-service-transport_neighbours.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/transport/gnunet-service-transport_neighbours.c b/src/transport/gnunet-service-transport_neighbours.c index 7e7b8a09f..6b2a7eef5 100644 --- a/src/transport/gnunet-service-transport_neighbours.c +++ b/src/transport/gnunet-service-transport_neighbours.c @@ -1604,13 +1604,17 @@ send_session_connect_cont (void *cls, n = lookup_neighbour (target); if (NULL == n) { - GNUNET_break (0); /* TESTING */ + /* CONNECT continuation was called after neighbor was freed, + * for example due to a time out for the state or the session + * used was already terminated: nothing to do here... */ return; } if (GNUNET_TRANSPORT_PS_CONNECT_SENT != n->state) { - GNUNET_break (0); /* TESTING */ + /* CONNECT continuation was called after neighbor changed state, + * for example due to a time out for the state or the session + * used was already terminated: nothing to do here... */ return; } if (GNUNET_OK == result) -- 2.25.1