udp: fix ordering of scrapes

This commit is contained in:
Leo Balduf
2017-01-29 18:47:07 +01:00
parent 8cf49aad2e
commit 102b032c43
5 changed files with 10 additions and 5 deletions
+1
View File
@@ -361,6 +361,7 @@ func (s *peerStore) ScrapeSwarm(ih bittorrent.InfoHash, addressFamily bittorrent
default:
}
resp.InfoHash = ih
shard := s.shards[s.shardIndex(ih, addressFamily)]
shard.RLock()