mirror of
https://github.com/octoleo/syncthing.git
synced 2025-01-22 14:48:30 +00:00
Only do initial scan if scanInterval==0 (fixes #856)
This commit is contained in:
parent
8a674c8bc3
commit
a778b410b9
@ -190,7 +190,9 @@ loop:
|
||||
break loop
|
||||
}
|
||||
p.model.setState(p.folder, FolderIdle)
|
||||
scanTimer.Reset(p.scanIntv)
|
||||
if p.scanIntv > 0 {
|
||||
scanTimer.Reset(p.scanIntv)
|
||||
}
|
||||
if !initialScanCompleted {
|
||||
l.Infoln("Completed initial scan (rw) of folder", p.folder)
|
||||
initialScanCompleted = true
|
||||
|
@ -59,6 +59,10 @@ func (s *Scanner) Serve() {
|
||||
initialScanCompleted = true
|
||||
}
|
||||
|
||||
if s.intv == 0 {
|
||||
return
|
||||
}
|
||||
|
||||
timer.Reset(s.intv)
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user