Don't try to request anything without the torrent info
This commit is contained in:
parent
99a64bcf63
commit
73be571f50
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue