Skip to content

Commit

Permalink
Increment the waitgroup first (#195)
Browse files Browse the repository at this point in the history
  • Loading branch information
tothszabi authored Apr 11, 2024
1 parent 921272d commit 9606561
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion analytics/track.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ func NewTracker(client Client, waitTimeout time.Duration, properties ...Properti
func (t tracker) Enqueue(eventName string, properties ...Properties) {
var b bytes.Buffer
newEvent(eventName, append(t.properties, properties...)).toJSON(&b)
t.jobs <- &b
t.waitGroup.Add(1)
t.jobs <- &b
}

// Wait ...
Expand Down

0 comments on commit 9606561

Please sign in to comment.