This commit is contained in:
Miya Chen 2017-09-15 09:30:49 +00:00 committed by GitHub
commit 80964d9539

View file

@ -338,9 +338,15 @@ func (f *Fetcher) loop() {
if _, ok := f.fetching[notification.hash]; ok {
break
}
if _, ok := f.fetched[notification.hash]; ok {
break
}
if _, ok := f.completing[notification.hash]; ok {
break
}
if _, ok := f.queued[notification.hash]; ok {
break
}
f.announces[notification.origin] = count
f.announced[notification.hash] = append(f.announced[notification.hash], notification)
if f.announceChangeHook != nil && len(f.announced[notification.hash]) == 1 {