Don't try to request anything without the torrent info

This commit is contained in:
Matt Joiner 2021-12-03 16:41:52 +11:00
parent 99a64bcf63
commit 73be571f50
1 changed files with 3 additions and 0 deletions

View File

@ -151,6 +151,9 @@ type desiredRequestState struct {
}
func (p *Peer) getDesiredRequestState() (desired desiredRequestState) {
if !p.t.haveInfo() {
return
}
input := p.t.getRequestStrategyInput()
requestHeap := peerRequests{
peer: p,