Skip to content

Commit

Permalink
add logging
Browse files Browse the repository at this point in the history
  • Loading branch information
majestrate committed Aug 16, 2017
1 parent a7b7907 commit c0470a5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/xd/lib/bittorrent/swarm/peer.go
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,7 @@ func (c *PeerConn) runDownload() {
pendingTry := 0
for !c.t.Done() && c.send != nil {
if c.RemoteChoking() {
log.Debugf("will not download this tick, %s is choking", c.id.String())
time.Sleep(time.Second)
continue
}
Expand Down

0 comments on commit c0470a5

Please sign in to comment.