Avoid unnecessarily calculating a rescan job twice.
This commit is contained in:
parent
59845d9c21
commit
d4bee3656c
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue