Skip to content

Commit

Permalink
remove printer
Browse files Browse the repository at this point in the history
  • Loading branch information
mh0lt committed Jul 10, 2024
1 parent 866f4dc commit 6b88478
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions torrent.go
Original file line number Diff line number Diff line change
Expand Up @@ -1788,20 +1788,11 @@ func (t *Torrent) maxHalfOpen(lock bool) int {
}

func (t *Torrent) openNewConns(lock bool) (initiated int) {
lc := false
if lock {
if t.mu.lc.Load() > 0 || t.mu.rlc.Load() > 0 {
lc = true
fmt.Println("ONC", "L", t.mu.locker, "R", t.mu.rlocker)
}
t.mu.Lock()
defer t.mu.Unlock()
}

if lc {
fmt.Println("ONC", "LOCKED", "L", t.mu.locker, "R", t.mu.rlocker)
defer fmt.Println("ONC", "DONE")
}
defer t.updateWantPeersEvent(false)

for t.peers.Len() != 0 {
Expand Down

0 comments on commit 6b88478

Please sign in to comment.