From: Bart Polot Date: Mon, 28 Jul 2014 05:12:39 +0000 (+0000) Subject: - use WAITING if some connections are in progress X-Git-Tag: initial-import-from-subversion-38251~3378 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=1721895119c3309f2ac2c255e0470bdf7fe0ba04;p=oweals%2Fgnunet.git - use WAITING if some connections are in progress --- 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