mirror of
https://github.com/octoleo/syncthing.git
synced 2025-01-22 22:58:25 +00:00
lib/model: Use correct lock (#5683)
This commit is contained in:
parent
9f358ecae0
commit
defc5dca65
@ -2384,9 +2384,8 @@ next:
|
|||||||
|
|
||||||
// BringToFront bumps the given files priority in the job queue.
|
// BringToFront bumps the given files priority in the job queue.
|
||||||
func (m *model) BringToFront(folder, file string) {
|
func (m *model) BringToFront(folder, file string) {
|
||||||
m.pmut.RLock()
|
m.fmut.RLock()
|
||||||
defer m.pmut.RUnlock()
|
defer m.fmut.RUnlock()
|
||||||
|
|
||||||
runner, ok := m.folderRunners[folder]
|
runner, ok := m.folderRunners[folder]
|
||||||
if ok {
|
if ok {
|
||||||
runner.BringToFront(file)
|
runner.BringToFront(file)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user