From 7b9cf32e4ea2763c16a14c44ab5b4423e8a9aaa9 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Tue, 1 Nov 2011 18:12:26 +0000 Subject: fix testcase, do not sleep if client is inactive --- src/testcurl/daemontest_post_loop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/testcurl/daemontest_post_loop.c b/src/testcurl/daemontest_post_loop.c index 0fe52e78..0539fde2 100644 --- a/src/testcurl/daemontest_post_loop.c +++ b/src/testcurl/daemontest_post_loop.c @@ -392,7 +392,7 @@ testExternalPost () if ((CURLM_OK == curl_multi_timeout (multi, &ctimeout)) && (ctimeout < timeout) && (ctimeout >= 0)) timeout = ctimeout; - if (c == NULL) + if ( (c == NULL) || (running == 0) ) timeout = 0; /* terminate quickly... */ tv.tv_sec = timeout / 1000; tv.tv_usec = (timeout % 1000) * 1000; -- cgit v1.2.3