Skip to content

Commit

Permalink
Don't share wg field in Collector.Clone function
Browse files Browse the repository at this point in the history
  • Loading branch information
nange committed Jul 4, 2018
1 parent dc3a35f commit 6ddb8e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion colly.go
Original file line number Diff line number Diff line change
Expand Up @@ -1102,7 +1102,7 @@ func (c *Collector) Clone() *Collector {
requestCallbacks: make([]RequestCallback, 0, 8),
responseCallbacks: make([]ResponseCallback, 0, 8),
robotsMap: c.robotsMap,
wg: c.wg,
wg: &sync.WaitGroup{},
}
}

Expand Down

0 comments on commit 6ddb8e2

Please sign in to comment.