Skip to content

Commit f9e277f

Browse files
authored
Merge pull request #182 from nange/master
Don't share wg field in Collector.Clone function
2 parents dc3a35f + 6ddb8e2 commit f9e277f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

colly.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1102,7 +1102,7 @@ func (c *Collector) Clone() *Collector {
11021102
requestCallbacks: make([]RequestCallback, 0, 8),
11031103
responseCallbacks: make([]ResponseCallback, 0, 8),
11041104
robotsMap: c.robotsMap,
1105-
wg: c.wg,
1105+
wg: &sync.WaitGroup{},
11061106
}
11071107
}
11081108

0 commit comments

Comments
 (0)