Skip to content

Commit

Permalink
Merge pull request #1761 from answer9030/master
Browse files Browse the repository at this point in the history
Avoid duplicate thread recycling.
  • Loading branch information
bmah888 authored Sep 20, 2024
2 parents 99cf98a + 7bd583d commit 0ea9cb6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/iperf_client_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -825,6 +825,9 @@ iperf_run_client(struct iperf_test * test)
/* Cancel all outstanding threads */
i_errno_save = i_errno;
SLIST_FOREACH(sp, &test->streams, streams) {
if (sp->done) {
continue;
}
sp->done = 1;
int rc;
rc = pthread_cancel(sp->thr);
Expand Down

0 comments on commit 0ea9cb6

Please sign in to comment.