From 60b22d16687c7cf4e9af0641448e1c182ad262e2 Mon Sep 17 00:00:00 2001 From: Bart Polot Date: Thu, 13 Dec 2012 11:43:52 +0000 Subject: [PATCH] - don't notify about tunnel that is dying --- src/mesh/gnunet-service-mesh.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mesh/gnunet-service-mesh.c b/src/mesh/gnunet-service-mesh.c index 116d88b77..f0a42f118 100644 --- a/src/mesh/gnunet-service-mesh.c +++ b/src/mesh/gnunet-service-mesh.c @@ -2273,6 +2273,9 @@ send_client_peer_connected (const struct MeshTunnel *t, const GNUNET_PEER_Id id) { struct GNUNET_MESH_PeerControl pc; + if (NULL == t->owner || GNUNET_YES == t->destroy) + return; + pc.header.type = htons (GNUNET_MESSAGE_TYPE_MESH_LOCAL_PEER_ADD); pc.header.size = htons (sizeof (struct GNUNET_MESH_PeerControl)); pc.tunnel_id = htonl (t->local_tid); -- 2.25.1