This commit is contained in:
Jakob Borg 2013-12-29 19:20:36 -05:00
parent 704e0fa6b8
commit 24efbe7d33

View File

@ -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)
}
}
}