mirror of
https://github.com/octoleo/syncthing.git
synced 2025-01-03 15:17:25 +00:00
lib/model: Reinstate setting folder idle state (#9029)
This commit is contained in:
parent
e09146ee03
commit
8b87cd5229
@ -163,7 +163,10 @@ func (f *sendReceiveFolder) pull() (bool, error) {
|
|||||||
|
|
||||||
scanChan := make(chan string)
|
scanChan := make(chan string)
|
||||||
go f.pullScannerRoutine(scanChan)
|
go f.pullScannerRoutine(scanChan)
|
||||||
defer close(scanChan)
|
defer func() {
|
||||||
|
close(scanChan)
|
||||||
|
f.setState(FolderIdle)
|
||||||
|
}()
|
||||||
|
|
||||||
metricFolderPulls.WithLabelValues(f.ID).Inc()
|
metricFolderPulls.WithLabelValues(f.ID).Inc()
|
||||||
ctx, cancel := context.WithCancel(f.ctx)
|
ctx, cancel := context.WithCancel(f.ctx)
|
||||||
|
Loading…
Reference in New Issue
Block a user