summaryrefslogtreecommitdiff
path: root/src/transport/gnunet-service-transport_neighbours.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-10-28 13:02:55 +0000
committerChristian Grothoff <christian@grothoff.org>2015-10-28 13:02:55 +0000
commit47cdfc6435d41f410ac7b9d25701905fbdeed6ea (patch)
treec0d827ea09bc5e3156897156fd5ecda371d32417 /src/transport/gnunet-service-transport_neighbours.c
parent78b3c3c0c977d4686cabfc8291d082e517f66998 (diff)
-fix #4025
Diffstat (limited to 'src/transport/gnunet-service-transport_neighbours.c')
-rw-r--r--src/transport/gnunet-service-transport_neighbours.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/transport/gnunet-service-transport_neighbours.c b/src/transport/gnunet-service-transport_neighbours.c
index 6664dd332..9f4982b67 100644
--- a/src/transport/gnunet-service-transport_neighbours.c
+++ b/src/transport/gnunet-service-transport_neighbours.c
@@ -597,18 +597,11 @@ neighbours_connect_notification (struct NeighbourMapEntry *n)
static void
neighbours_disconnect_notification (struct NeighbourMapEntry *n)
{
- struct DisconnectInfoMessage disconnect_msg;
-
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
"Peer `%s' disconnected\n",
GNUNET_i2s (&n->id));
GST_manipulation_peer_disconnect (&n->id);
- disconnect_msg.header.size = htons (sizeof(struct DisconnectInfoMessage));
- disconnect_msg.header.type = htons (GNUNET_MESSAGE_TYPE_TRANSPORT_DISCONNECT);
- disconnect_msg.reserved = htonl (0);
- disconnect_msg.peer = n->id;
- GST_clients_broadcast (&disconnect_msg.header,
- GNUNET_NO);
+ GST_clients_broadcast_disconnect (&n->id);
}