From 91b315d61ba7877aba9dd9d1d3248cd9f17e9b34 Mon Sep 17 00:00:00 2001 From: mikespook Date: Wed, 21 Nov 2012 17:53:49 +0800 Subject: [PATCH] a wild pointer captrued --- worker/worker.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worker/worker.go b/worker/worker.go index 27f92a9..b8c1642 100644 --- a/worker/worker.go +++ b/worker/worker.go @@ -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()