Skip to content

Commit

Permalink
save
Browse files Browse the repository at this point in the history
  • Loading branch information
dvovk committed Dec 5, 2024
1 parent 87d4028 commit fd58b86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion peer.go
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,7 @@ func (me *Peer) cancel(r RequestIndex, lock bool, lockTorrent bool) {

if me._cancel(r, false, false) {
// Record that we expect to get a cancel ack.
if !me.requestState.Cancelled.CheckedAdd(r) {
if !me.requestState.Cancelled.CheckedAdd(r) {
panic(fmt.Sprintf("request %d: already cancelled for hash: %s", r, me.t.InfoHash()))
}
}
Expand Down

0 comments on commit fd58b86

Please sign in to comment.