diff options
author | Christian Grothoff <christian@grothoff.org> | 2017-01-29 20:20:48 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2017-01-29 20:20:48 +0100 |
commit | 087042f41a8264c418bb453cfeda4ca48d54276e (patch) | |
tree | 38a5c05cd0337256e5729ba206fdc3d920d2c22e /src/cadet/gnunet-service-cadet-new_connection.c | |
parent | 9f4bc1121c34560a72a09db49e5b163a64eb5b06 (diff) | |
download | gnunet-087042f41a8264c418bb453cfeda4ca48d54276e.tar.gz gnunet-087042f41a8264c418bb453cfeda4ca48d54276e.zip |
fix shutdown sequence
Diffstat (limited to 'src/cadet/gnunet-service-cadet-new_connection.c')
-rw-r--r-- | src/cadet/gnunet-service-cadet-new_connection.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cadet/gnunet-service-cadet-new_connection.c b/src/cadet/gnunet-service-cadet-new_connection.c index f3603a694..688cb1f80 100644 --- a/src/cadet/gnunet-service-cadet-new_connection.c +++ b/src/cadet/gnunet-service-cadet-new_connection.c | |||
@@ -225,6 +225,10 @@ GCC_destroy (struct CadetConnection *cc) | |||
225 | GCPP_del_connection (cc->path, | 225 | GCPP_del_connection (cc->path, |
226 | cc->off, | 226 | cc->off, |
227 | cc); | 227 | cc); |
228 | for (unsigned int i=0;i<cc->off;i++) | ||
229 | GCP_remove_connection (GCPP_get_peer_at_offset (cc->path, | ||
230 | i), | ||
231 | cc); | ||
228 | GNUNET_assert (GNUNET_YES == | 232 | GNUNET_assert (GNUNET_YES == |
229 | GNUNET_CONTAINER_multishortmap_remove (connections, | 233 | GNUNET_CONTAINER_multishortmap_remove (connections, |
230 | &GCC_get_id (cc)->connection_of_tunnel, | 234 | &GCC_get_id (cc)->connection_of_tunnel, |