From 1c7a7aabdec64880fb511e0c059fd96a06475d30 Mon Sep 17 00:00:00 2001 From: teodor Date: Thu, 29 Nov 2007 19:44:48 +0000 Subject: [PATCH] Much more nice cleanup on exit --- topd.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/topd.c b/topd.c index 47f2629..870fbc1 100644 --- a/topd.c +++ b/topd.c @@ -144,10 +144,8 @@ main( int argc, char *argv[] ) { } } - for(i=cfg.pool.number-1; i>TC_SERVER_CONN_START; i--) + for(i=cfg.pool.number-1; i>=0; i--) TC_deleteConnectionByN(&cfg.pool,i); - TC_deleteConnectionByN(&cfg.pool, 1); - TC_deleteConnectionByN(&cfg.pool, 0); } } if (child == -1) -- 2.46.1