Browse Source

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

Simon Frei 4 years ago
parent
commit
517667c590
1 changed files with 3 additions and 0 deletions
  1. 3 0
      lib/model/indexhandler.go

+ 3 - 0
lib/model/indexhandler.go

@@ -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.