Skip to content

Commit

Permalink
Measurement loop: return on <-done
Browse files Browse the repository at this point in the history
  • Loading branch information
paaguti committed Dec 21, 2019
1 parent 458c246 commit 3256c7e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tcp/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
common "github.com/paaguti/flowsim/common"
"io"
"math/rand"
// "os"
"strconv"
"time"
)
Expand Down Expand Up @@ -94,6 +95,7 @@ func Client(host string, port int, iter int, interval int, burst int, tos int) {
case <-done:
// fmt.Fprintf(os.Stderr, "Finished...\n\n")
common.PrintJSon(result)
return
}
}
}
Expand Down

0 comments on commit 3256c7e

Please sign in to comment.