Skip to content

Commit

Permalink
Do not listen to old pro_listener
Browse files Browse the repository at this point in the history
  • Loading branch information
davidBar-On committed Jun 2, 2024
1 parent 8f5a87e commit ac6b9f7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/iperf_udp.c
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,7 @@ iperf_udp_accept(struct iperf_test *test)
/*
* Create a new "listening" socket to replace the one we were using before.
*/
FD_CLR(test->prot_listener, &test->read_set); // No control messages from old listener
test->prot_listener = netannounce(test->settings->domain, Pudp, test->bind_address, test->bind_dev, test->server_port);
if (test->prot_listener < 0) {
i_errno = IESTREAMLISTEN;
Expand Down

0 comments on commit ac6b9f7

Please sign in to comment.