- don't notify about tunnel that is dying
authorBart Polot <bart@net.in.tum.de>
Thu, 13 Dec 2012 11:43:52 +0000 (11:43 +0000)
committerBart Polot <bart@net.in.tum.de>
Thu, 13 Dec 2012 11:43:52 +0000 (11:43 +0000)
src/mesh/gnunet-service-mesh.c

index 116d88b77eb21f2b7200e905c895727f1fafcbb6..f0a42f118f32942b94172e7eb783c8c1f999ed99 100644 (file)
@@ -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);