浏览代码

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

Simon Frei 4 年之前
父节点
当前提交
517667c590
共有 1 个文件被更改,包括 3 次插入0 次删除
  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.