mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-08 22:31:04 +00:00
Woops
This commit is contained in:
parent
704e0fa6b8
commit
24efbe7d33
@ -146,9 +146,14 @@ func (m *Model) puller() {
|
||||
for _, n := range ns {
|
||||
limiter <- true
|
||||
|
||||
go func(n string) {
|
||||
defer func() {
|
||||
<-limiter
|
||||
}()
|
||||
|
||||
f, ok := m.GlobalFile(n)
|
||||
if !ok {
|
||||
continue
|
||||
return
|
||||
}
|
||||
|
||||
var err error
|
||||
@ -169,8 +174,7 @@ func (m *Model) puller() {
|
||||
} else {
|
||||
warnln(err)
|
||||
}
|
||||
|
||||
<-limiter
|
||||
}(n)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user