client.go | 5 ++++- diff --git a/client.go b/client.go index 2bfae3b731387d8cfac7420da062890ce69a6ee9..ac54b86affe712f3aa0ca22f76d0912822cff9c7 100644 --- a/client.go +++ b/client.go @@ -22,6 +22,7 @@ "strconv" "strings" "time" + "github.com/anacrolix/missinggo" . "github.com/anacrolix/missinggo" "github.com/anacrolix/missinggo/perf" "github.com/anacrolix/sync" @@ -1763,7 +1764,9 @@ c := t.worstBadConn(me) if c == nil { return false } - log.Printf("%s: dropping connection to make room for new one:\n %s", t, c) + if missinggo.CryHeard() { + log.Printf("%s: dropping connection to make room for new one:\n %s", t, c) + } c.Close() me.deleteConnection(t, c) }