summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2020-03-03 19:06:44 +0300
committerValery Piashchynski <[email protected]>2020-03-03 19:06:44 +0300
commit63de1b8cb47332a2d3f0cf560940cb78c08d6e6e (patch)
treed4c0f3038bf5c22818da61a2aa063acbfe788747 /cmd
parentd21f1b7d4edfe07a8b9142502f8bf6c1d57ea172 (diff)
Eliminate possible data race
Diffstat (limited to 'cmd')
-rw-r--r--cmd/rr/cmd/serve.go2
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