File tree Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * iperf, Copyright (c) 2014-2022 , The Regents of the University of
2
+ * iperf, Copyright (c) 2014-2023 , The Regents of the University of
3
3
* California, through Lawrence Berkeley National Laboratory (subject
4
4
* to receipt of any required approvals from the U.S. Dept. of
5
5
* Energy). All rights reserved.
@@ -56,7 +56,7 @@ iperf_client_worker_run(void *s) {
56
56
struct iperf_stream * sp = (struct iperf_stream * ) s ;
57
57
struct iperf_test * test = sp -> test ;
58
58
59
- while (! (test -> done )) {
59
+ while (! (test -> done ) && ! ( sp -> done ) ) {
60
60
if (sp -> sender ) {
61
61
if (iperf_send_mt (sp ) < 0 ) {
62
62
goto cleanup_and_fail ;
@@ -71,8 +71,6 @@ iperf_client_worker_run(void *s) {
71
71
return NULL ;
72
72
73
73
cleanup_and_fail :
74
- /* XXX */
75
- test -> done = 0 ;
76
74
return NULL ;
77
75
}
78
76
Original file line number Diff line number Diff line change 1
1
/*
2
- * iperf, Copyright (c) 2014-2022 The Regents of the University of
2
+ * iperf, Copyright (c) 2014-2023 The Regents of the University of
3
3
* California, through Lawrence Berkeley National Laboratory (subject
4
4
* to receipt of any required approvals from the U.S. Dept. of
5
5
* Energy). All rights reserved.
@@ -71,7 +71,7 @@ iperf_server_worker_run(void *s) {
71
71
struct iperf_stream * sp = (struct iperf_stream * ) s ;
72
72
struct iperf_test * test = sp -> test ;
73
73
74
- while (! (test -> done )) {
74
+ while (! (test -> done ) && ! ( sp -> done ) ) {
75
75
if (sp -> sender ) {
76
76
if (iperf_send_mt (sp ) < 0 ) {
77
77
goto cleanup_and_fail ;
@@ -86,8 +86,6 @@ iperf_server_worker_run(void *s) {
86
86
return NULL ;
87
87
88
88
cleanup_and_fail :
89
- /* XXX */
90
- test -> done = 0 ;
91
89
return NULL ;
92
90
}
93
91
You can’t perform that action at this time.
0 commit comments