aboutsummaryrefslogtreecommitdiff
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)
downloadgnunet-47cdfc6435d41f410ac7b9d25701905fbdeed6ea.tar.gz
gnunet-47cdfc6435d41f410ac7b9d25701905fbdeed6ea.zip
-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)
597static void 597static void
598neighbours_disconnect_notification (struct NeighbourMapEntry *n) 598neighbours_disconnect_notification (struct NeighbourMapEntry *n)
599{ 599{
600 struct DisconnectInfoMessage disconnect_msg;
601
602 GNUNET_log (GNUNET_ERROR_TYPE_INFO, 600 GNUNET_log (GNUNET_ERROR_TYPE_INFO,
603 "Peer `%s' disconnected\n", 601 "Peer `%s' disconnected\n",
604 GNUNET_i2s (&n->id)); 602 GNUNET_i2s (&n->id));
605 GST_manipulation_peer_disconnect (&n->id); 603 GST_manipulation_peer_disconnect (&n->id);
606 disconnect_msg.header.size = htons (sizeof(struct DisconnectInfoMessage)); 604 GST_clients_broadcast_disconnect (&n->id);
607 disconnect_msg.header.type = htons (GNUNET_MESSAGE_TYPE_TRANSPORT_DISCONNECT);
608 disconnect_msg.reserved = htonl (0);
609 disconnect_msg.peer = n->id;
610 GST_clients_broadcast (&disconnect_msg.header,
611 GNUNET_NO);
612} 605}
613 606
614 607