summaryrefslogtreecommitdiff
path: root/src/transport/gnunet-service-transport_neighbours.c
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2014-08-29 11:31:38 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2014-08-29 11:31:38 +0000
commitc123f267c0a83f69395e09a6034d5cc219ade838 (patch)
tree664e18764d877468682bc923fe6aaeb7e2e508f9 /src/transport/gnunet-service-transport_neighbours.c
parent6c20cb042f548dbd98a89ed457c82212090ea7b0 (diff)
profiler
Diffstat (limited to 'src/transport/gnunet-service-transport_neighbours.c')
-rw-r--r--src/transport/gnunet-service-transport_neighbours.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/transport/gnunet-service-transport_neighbours.c b/src/transport/gnunet-service-transport_neighbours.c
index b11add24c..6867251f3 100644
--- a/src/transport/gnunet-service-transport_neighbours.c
+++ b/src/transport/gnunet-service-transport_neighbours.c
@@ -3569,6 +3569,11 @@ void delayed_disconnect (void *cls,
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
"Disconnecting by request from peer %s\n",
GNUNET_i2s (&n->id));
+
+ if (NULL != n->primary_address.address)
+ GNUNET_ATS_address_destroyed (GST_ats, n->primary_address.address,
+ n->primary_address.session);
+
free_neighbour (n, GNUNET_NO);
}