Skip to content

Commit 0ea9cb6

Browse files
authored
Merge pull request #1761 from answer9030/master
Avoid duplicate thread recycling.
2 parents 99cf98a + 7bd583d commit 0ea9cb6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/iperf_client_api.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -825,6 +825,9 @@ iperf_run_client(struct iperf_test * test)
825825
/* Cancel all outstanding threads */
826826
i_errno_save = i_errno;
827827
SLIST_FOREACH(sp, &test->streams, streams) {
828+
if (sp->done) {
829+
continue;
830+
}
828831
sp->done = 1;
829832
int rc;
830833
rc = pthread_cancel(sp->thr);

0 commit comments

Comments
 (0)