diff options
Diffstat (limited to 'tests/libtest/lib530.c')
-rw-r--r-- | tests/libtest/lib530.c | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/tests/libtest/lib530.c b/tests/libtest/lib530.c index add64ea31..6ad946f2d 100644 --- a/tests/libtest/lib530.c +++ b/tests/libtest/lib530.c @@ -161,20 +161,16 @@ int test(char *URL) mp_timedout = FALSE; mp_start = tutil_tvnow(); - while (res == CURLM_CALL_MULTI_PERFORM) { - res = (int)curl_multi_perform(m, &running); - if (tutil_tvdiff(tutil_tvnow(), mp_start) > - MULTI_PERFORM_HANG_TIMEOUT) { - mp_timedout = TRUE; - break; - } - if (running <= 0) { - done = TRUE; /* bail out */ - break; - } + res = (int)curl_multi_perform(m, &running); + if (tutil_tvdiff(tutil_tvnow(), mp_start) > + MULTI_PERFORM_HANG_TIMEOUT) { + mp_timedout = TRUE; + break; } - if (mp_timedout || done) + if (running <= 0) { + done = TRUE; /* bail out */ break; + } if (res != CURLM_OK) { fprintf(stderr, "not okay???\n"); |