aboutsummaryrefslogtreecommitdiff
path: root/src/transport/gnunet-service-transport_neighbours.c
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2014-03-20 09:05:01 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2014-03-20 09:05:01 +0000
commite28f1b409bd3f3dbff7d4f331ea8a37603ba6d7c (patch)
treef4477763ce8d659fc7f994400c73808332616898 /src/transport/gnunet-service-transport_neighbours.c
parent78136c31b2a37fc0622312b6bbcf5bbd81cfbfa7 (diff)
downloadgnunet-e28f1b409bd3f3dbff7d4f331ea8a37603ba6d7c.tar.gz
gnunet-e28f1b409bd3f3dbff7d4f331ea8a37603ba6d7c.zip
remove testing breaks and add documentation for checks
Diffstat (limited to 'src/transport/gnunet-service-transport_neighbours.c')
-rw-r--r--src/transport/gnunet-service-transport_neighbours.c8
1 files 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,
1604 n = lookup_neighbour (target); 1604 n = lookup_neighbour (target);
1605 if (NULL == n) 1605 if (NULL == n)
1606 { 1606 {
1607 GNUNET_break (0); /* TESTING */ 1607 /* CONNECT continuation was called after neighbor was freed,
1608 * for example due to a time out for the state or the session
1609 * used was already terminated: nothing to do here... */
1608 return; 1610 return;
1609 } 1611 }
1610 1612
1611 if (GNUNET_TRANSPORT_PS_CONNECT_SENT != n->state) 1613 if (GNUNET_TRANSPORT_PS_CONNECT_SENT != n->state)
1612 { 1614 {
1613 GNUNET_break (0); /* TESTING */ 1615 /* CONNECT continuation was called after neighbor changed state,
1616 * for example due to a time out for the state or the session
1617 * used was already terminated: nothing to do here... */
1614 return; 1618 return;
1615 } 1619 }
1616 if (GNUNET_OK == result) 1620 if (GNUNET_OK == result)