]> Sergey Matveev's repositories - btrtrc.git/commitdiff
Fix webseeds not requesting after priorities are already set
authorMatt Joiner <anacrolix@gmail.com>
Tue, 27 Aug 2024 01:29:59 +0000 (11:29 +1000)
committerMatt Joiner <anacrolix@gmail.com>
Tue, 27 Aug 2024 01:30:19 +0000 (11:30 +1000)
https://github.com/anacrolix/torrent/issues/964#issuecomment-2295308596

torrent.go

index 2742ad6a90afd30da10d4544cdc103f1cdc6365c..68cfe1f0bec2fea03c57d5e4d1267037be63bb8a 100644 (file)
@@ -2904,6 +2904,7 @@ func (t *Torrent) addWebSeed(url string, opts ...AddWebSeedsOpt) {
                ws.onGotInfo(t.info)
        }
        t.webSeeds[url] = &ws.peer
+       ws.peer.updateRequests("Torrent.addWebSeed")
 }
 
 func (t *Torrent) peerIsActive(p *Peer) (active bool) {