From 1721895119c3309f2ac2c255e0470bdf7fe0ba04 Mon Sep 17 00:00:00 2001 From: Bart Polot Date: Mon, 28 Jul 2014 05:12:39 +0000 Subject: [PATCH] - use WAITING if some connections are in progress --- src/cadet/gnunet-service-cadet_tunnel.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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, conns = GCT_count_connections (t); if (0 == conns) - GCT_change_cstate (t, CADET_TUNNEL_SEARCHING); + { + if (0 == GCT_count_any_connections (t)) + GCT_change_cstate (t, CADET_TUNNEL_SEARCHING); + else + GCT_change_cstate (t, CADET_TUNNEL_WAITING); + } /* Start new connections if needed */ if (CONNECTIONS_PER_TUNNEL > conns -- 2.25.1