From d4bee3656c906dd3364c8ed3a6cafc686b5a1f30 Mon Sep 17 00:00:00 2001 From: Josh Rickmar Date: Wed, 26 Mar 2014 21:13:10 -0500 Subject: [PATCH] Avoid unnecessarily calculating a rescan job twice. --- rescan.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rescan.go b/rescan.go index f5074ec..c19498e 100644 --- a/rescan.go +++ b/rescan.go @@ -200,7 +200,7 @@ func (m *RescanManager) jobHandler() { if !curBatch.empty() { job := curBatch.job() - m.sendJob <- curBatch.job() + m.sendJob <- job if m.msgs != nil { m.msgs <- (*RescanStartedMsg)(job) }