Skip to content

Commit

Permalink
fix wrong exit from torrent loop
Browse files Browse the repository at this point in the history
  • Loading branch information
cenkalti committed Feb 21, 2019
1 parent 22177d5 commit 95309b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torrent/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ func (t *torrent) run() {
t.log.Error("received corrupt piece")
t.closePeer(pw.Peer)
t.startPieceDownloaders()
return
break
}
if pw.Error != nil {
t.stop(pw.Error)
Expand Down

0 comments on commit 95309b1

Please sign in to comment.