diff options
author | Valery Piashchynski <[email protected]> | 2020-03-03 19:06:44 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2020-03-03 19:06:44 +0300 |
commit | 63de1b8cb47332a2d3f0cf560940cb78c08d6e6e (patch) | |
tree | d4c0f3038bf5c22818da61a2aa063acbfe788747 /cmd | |
parent | d21f1b7d4edfe07a8b9142502f8bf6c1d57ea172 (diff) |
Eliminate possible data race
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/rr/cmd/serve.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/rr/cmd/serve.go b/cmd/rr/cmd/serve.go index e472767c..cafbdd4f 100644 --- a/cmd/rr/cmd/serve.go +++ b/cmd/rr/cmd/serve.go @@ -44,8 +44,8 @@ func serveHandler(cmd *cobra.Command, args []string) error { wg := &sync.WaitGroup{} + wg.Add(1) go func() { - wg.Add(1) defer wg.Done() // get the signal <-c |