mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-24 23:18:17 +01:00
Add isPresent check
This commit is contained in:
parent
f36a17389e
commit
b748bffbfe
1 changed files with 2 additions and 1 deletions
|
@ -147,7 +147,8 @@ public class PeerExchangeManager implements MessageListener, ConnectionListener,
|
|||
}, RETRY_DELAY_SEC);
|
||||
}
|
||||
|
||||
if (peerManager.isPeerBanned(closeConnectionReason, connection))
|
||||
if (peerManager.isPeerBanned(closeConnectionReason, connection) &&
|
||||
connection.getPeersNodeAddressOptional().isPresent())
|
||||
seedNodeAddresses.remove(connection.getPeersNodeAddressOptional().get());
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue