From ec29799909c1c886fafed250c2caf8f4f46ae2dd Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 18 Oct 2015 12:27:38 +0000 Subject: -mirror check on disconnect --- src/core/gnunet-service-core_neighbours.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src') diff --git a/src/core/gnunet-service-core_neighbours.c b/src/core/gnunet-service-core_neighbours.c index c89a8f45d..f96d66d6e 100644 --- a/src/core/gnunet-service-core_neighbours.c +++ b/src/core/gnunet-service-core_neighbours.c @@ -401,6 +401,13 @@ handle_transport_notify_disconnect (void *cls, { struct Neighbour *n; + if (0 == memcmp (peer, + &GSC_my_identity, + sizeof (struct GNUNET_PeerIdentity))) + { + GNUNET_break (0); + return; + } GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Peer `%s' disconnected from us; received notification from transport.\n", GNUNET_i2s (peer)); -- cgit v1.2.3