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.
|
||||
func (m *model) BringToFront(folder, file string) {
|
||||
m.pmut.RLock()
|
||||
defer m.pmut.RUnlock()
|
||||
|
||||
m.fmut.RLock()
|
||||
defer m.fmut.RUnlock()
|
||||
runner, ok := m.folderRunners[folder]
|
||||
if ok {
|
||||
runner.BringToFront(file)
|
||||
|
Loading…
x
Reference in New Issue
Block a user