lib/model: Pull when a new connection is established (fixes #8012) (#8013)

This commit is contained in:
Simon Frei 2021-10-20 18:55:22 +02:00 committed by GitHub
parent 36c044562c
commit 517667c590
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -426,6 +426,9 @@ func (r *indexHandlerRegistry) startLocked(folder config.FolderConfiguration, fs
is := newIndexHandler(r.conn, r.downloads, folder, fset, runner, startInfo, r.evLogger)
is.token = r.sup.Add(is)
r.indexHandlers[folder.ID] = is
// This new connection might help us get in sync.
runner.SchedulePull()
}
// AddIndexInfo starts an index handler for given folder, unless it is paused.