diff options
author | Bart Polot <bart@net.in.tum.de> | 2014-07-28 05:12:39 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2014-07-28 05:12:39 +0000 |
commit | 1721895119c3309f2ac2c255e0470bdf7fe0ba04 (patch) | |
tree | d83191041ac0ed5cdf44a7972ccdd7726b3e69dc /src/cadet | |
parent | fc34de7eef58a5cf0f7df000eabb91d713dd86e4 (diff) | |
download | gnunet-1721895119c3309f2ac2c255e0470bdf7fe0ba04.tar.gz gnunet-1721895119c3309f2ac2c255e0470bdf7fe0ba04.zip |
- use WAITING if some connections are in progress
Diffstat (limited to 'src/cadet')
-rw-r--r-- | src/cadet/gnunet-service-cadet_tunnel.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/cadet/gnunet-service-cadet_tunnel.c b/src/cadet/gnunet-service-cadet_tunnel.c index 0c797da5e..8b04f6a0f 100644 --- a/src/cadet/gnunet-service-cadet_tunnel.c +++ b/src/cadet/gnunet-service-cadet_tunnel.c | |||
@@ -2387,7 +2387,12 @@ GCT_remove_connection (struct CadetTunnel *t, | |||
2387 | 2387 | ||
2388 | conns = GCT_count_connections (t); | 2388 | conns = GCT_count_connections (t); |
2389 | if (0 == conns) | 2389 | if (0 == conns) |
2390 | GCT_change_cstate (t, CADET_TUNNEL_SEARCHING); | 2390 | { |
2391 | if (0 == GCT_count_any_connections (t)) | ||
2392 | GCT_change_cstate (t, CADET_TUNNEL_SEARCHING); | ||
2393 | else | ||
2394 | GCT_change_cstate (t, CADET_TUNNEL_WAITING); | ||
2395 | } | ||
2391 | 2396 | ||
2392 | /* Start new connections if needed */ | 2397 | /* Start new connections if needed */ |
2393 | if (CONNECTIONS_PER_TUNNEL > conns | 2398 | if (CONNECTIONS_PER_TUNNEL > conns |