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