From dc3378e8908ac21437ed8572113d8021113d4ad3 Mon Sep 17 00:00:00 2001 From: Christian Schwarz Date: Sat, 16 Sep 2017 20:21:05 +0200 Subject: [PATCH] cmd: daemon: use closure-local variable when starting job --- cmd/daemon.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/daemon.go b/cmd/daemon.go index 767c987..08c3b11 100644 --- a/cmd/daemon.go +++ b/cmd/daemon.go @@ -66,7 +66,7 @@ func (d *Daemon) Loop() { ctx = context.WithValue(ctx, contextKeyLog, logger) go func(j Job) { - job.JobStart(ctx) + j.JobStart(ctx) finishs <- j }(job) }