Skip to content

Commit

Permalink
Revert "fixed discover for new peers connection"
Browse files Browse the repository at this point in the history
  • Loading branch information
dvovk authored Oct 12, 2024
1 parent 3ccd90c commit b104e3b
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions torrent.go
Original file line number Diff line number Diff line change
Expand Up @@ -2533,10 +2533,6 @@ func (t *Torrent) wantOutgoingConns(lock bool) bool {
conns := t.peerConnsAsSlice(lock)
defer conns.free()

if len(conns) < t.maxEstablishedConns {
return true
}

numOutgoingConns := conns.numOutgoingConns()
numIncomingConns := len(conns) - numOutgoingConns

Expand Down

0 comments on commit b104e3b

Please sign in to comment.