<p>Fix connection limit checks so as to prevent the following warning:</p>
<blockquote>
<p>WARN  b.n.p2p.peers.PeerManager: No candidates found to remove (That<br>
case should not be possible as we use in the last case all<br>
connections).</p>
</blockquote>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/bisq-network/bisq/pull/3126'>https://github.com/bisq-network/bisq/pull/3126</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>Refactor checkMaxConnections</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/bisq-network/bisq/pull/3126/files#diff-0">p2p/src/main/java/bisq/network/p2p/peers/PeerManager.java</a>
    (105)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/bisq-network/bisq/pull/3126.patch'>https://github.com/bisq-network/bisq/pull/3126.patch</a></li>
  <li><a href='https://github.com/bisq-network/bisq/pull/3126.diff'>https://github.com/bisq-network/bisq/pull/3126.diff</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/bisq-network/bisq/pull/3126?email_source=notifications&email_token=AJFFTNS7VKLOJKDES7A555LQFY5FZA5CNFSM4IORWVYKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HGWOK3Q">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AJFFTNQLZ5IDCDWLKEERYG3QFY5FZANCNFSM4IORWVYA">mute the thread</a>.<img src="https://github.com/notifications/beacon/AJFFTNSWCSOWXM6VZ4TCSNDQFY5FZA5CNFSM4IORWVYKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HGWOK3Q.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/bisq-network/bisq/pull/3126?email_source=notifications\u0026email_token=AJFFTNS7VKLOJKDES7A555LQFY5FZA5CNFSM4IORWVYKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HGWOK3Q",
"url": "https://github.com/bisq-network/bisq/pull/3126?email_source=notifications\u0026email_token=AJFFTNS7VKLOJKDES7A555LQFY5FZA5CNFSM4IORWVYKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HGWOK3Q",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>