diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-06-26 11:27:08 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-06-26 11:27:08 +0000 |
commit | 87a89687d301063019223e8cc6b393eefe625985 (patch) | |
tree | b420dbf825f8ba15c1dacb0f24af3346bdfdc0d2 /src/transport/gnunet-service-transport_neighbours.c | |
parent | ee0de607e52152c03a865559422dad4faacad53d (diff) | |
download | gnunet-87a89687d301063019223e8cc6b393eefe625985.tar.gz gnunet-87a89687d301063019223e8cc6b393eefe625985.zip |
-clarify comments
Diffstat (limited to 'src/transport/gnunet-service-transport_neighbours.c')
-rw-r--r-- | src/transport/gnunet-service-transport_neighbours.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/transport/gnunet-service-transport_neighbours.c b/src/transport/gnunet-service-transport_neighbours.c index 4f4dbfefa..9c7a70a96 100644 --- a/src/transport/gnunet-service-transport_neighbours.c +++ b/src/transport/gnunet-service-transport_neighbours.c | |||
@@ -368,7 +368,13 @@ enum State | |||
368 | S_DISCONNECT, | 368 | S_DISCONNECT, |
369 | 369 | ||
370 | /** | 370 | /** |
371 | * We're finished with the disconnect; clean up state now! | 371 | * We're finished with the disconnect; and are cleaning up the state |
372 | * now! We put the struct into this state when we are really in the | ||
373 | * task that calls 'free' on it and are about to remove the record | ||
374 | * from the map. We should never find a 'struct NeighbourMapEntry' | ||
375 | * in this state in the map. Accessing a 'struct NeighbourMapEntry' | ||
376 | * in this state virtually always means using memory that has been | ||
377 | * freed (the exception being the cleanup code in 'free_neighbour'). | ||
372 | */ | 378 | */ |
373 | S_DISCONNECT_FINISHED | 379 | S_DISCONNECT_FINISHED |
374 | }; | 380 | }; |