Avoid unnecessarily calculating a rescan job twice.

This commit is contained in:
Josh Rickmar 2014-03-26 21:13:10 -05:00
parent 59845d9c21
commit d4bee3656c

View file

@ -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)
}