1
0
mirror of https://github.com/veggiedefender/torrent-client.git synced 2025-11-06 09:29:16 +02:00

Check error in getPeers

This commit is contained in:
Jesse Li
2020-01-02 10:23:18 -05:00
parent f746beb9d6
commit 7e8b3413ac

View File

@@ -45,6 +45,9 @@ func (t *TorrentFile) Download() ([]byte, error) {
}
peers, err := t.getPeers(peerID, Port)
if err != nil {
return nil, err
}
torrent := p2p.Torrent{
Peers: peers,