From: Bart Polot Date: Thu, 13 Dec 2012 11:43:52 +0000 (+0000) Subject: - don't notify about tunnel that is dying X-Git-Tag: initial-import-from-subversion-38251~10446 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=60b22d16687c7cf4e9af0641448e1c182ad262e2;p=oweals%2Fgnunet.git - don't notify about tunnel that is dying --- 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);