a wild pointer captrued
This commit is contained in:
parent
665bef9eb2
commit
91b315d61b
@ -178,8 +178,8 @@ func (worker *Worker) Work() {
|
|||||||
go v.Work()
|
go v.Work()
|
||||||
}
|
}
|
||||||
ok := true
|
ok := true
|
||||||
var job *Job
|
|
||||||
for ok {
|
for ok {
|
||||||
|
var job *Job
|
||||||
if job, ok = <-worker.in; ok {
|
if job, ok = <-worker.in; ok {
|
||||||
go func() {
|
go func() {
|
||||||
defer job.Close()
|
defer job.Close()
|
||||||
|
Loading…
Reference in New Issue
Block a user