From 6b884788291d105706d82e4ad0de8b7846072782 Mon Sep 17 00:00:00 2001 From: Mark Holt Date: Thu, 11 Jul 2024 00:36:47 +0200 Subject: [PATCH] remove printer --- torrent.go | 9 --------- 1 file changed, 9 deletions(-) diff --git a/torrent.go b/torrent.go index 507214697b..af1890cb72 100644 --- a/torrent.go +++ b/torrent.go @@ -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 {