aboutsummaryrefslogtreecommitdiff
path: root/src/mesh/gnunet-service-mesh_tunnel.c
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2013-12-17 03:37:16 +0000
committerBart Polot <bart@net.in.tum.de>2013-12-17 03:37:16 +0000
commit69810e537ec74fff07742ca476d0897f7d4a4b30 (patch)
treeb1a93411752bcf0694a8245153ffebade0c31fcf /src/mesh/gnunet-service-mesh_tunnel.c
parent88b5276a0022b828eb7956c1404ec20a6be4d2b0 (diff)
downloadgnunet-69810e537ec74fff07742ca476d0897f7d4a4b30.tar.gz
gnunet-69810e537ec74fff07742ca476d0897f7d4a4b30.zip
- dont count destroyed connections
Diffstat (limited to 'src/mesh/gnunet-service-mesh_tunnel.c')
-rw-r--r--src/mesh/gnunet-service-mesh_tunnel.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesh/gnunet-service-mesh_tunnel.c b/src/mesh/gnunet-service-mesh_tunnel.c
index d32256290..c3a0166a2 100644
--- a/src/mesh/gnunet-service-mesh_tunnel.c
+++ b/src/mesh/gnunet-service-mesh_tunnel.c
@@ -2068,9 +2068,9 @@ GMT_count_connections (struct MeshTunnel3 *t)
2068 struct MeshTConnection *iter; 2068 struct MeshTConnection *iter;
2069 unsigned int count; 2069 unsigned int count;
2070 2070
2071 for (count = 0, iter = t->connection_head; 2071 for (count = 0, iter = t->connection_head; NULL != iter; iter = iter->next)
2072 NULL != iter; 2072 if (MESH_CONNECTION_DESTROYED != GMC_get_state (iter->c))
2073 iter = iter->next, count++); 2073 count++;
2074 2074
2075 return count; 2075 return count;
2076} 2076}