mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2025-02-24 06:47:54 +01:00
PeerSocketHandler: make peerAddress field final
This commit is contained in:
parent
10e701f8d7
commit
bdc174e9bc
1 changed files with 1 additions and 1 deletions
|
@ -52,7 +52,7 @@ public abstract class PeerSocketHandler implements TimeoutHandler, StreamConnect
|
|||
private final SocketTimeoutTask timeoutTask;
|
||||
|
||||
private final MessageSerializer serializer;
|
||||
protected PeerAddress peerAddress;
|
||||
protected final PeerAddress peerAddress;
|
||||
// If we close() before we know our writeTarget, set this to true to call writeTarget.closeConnection() right away.
|
||||
private boolean closePending = false;
|
||||
// writeTarget will be thread-safe, and may call into PeerGroup, which calls us, so we should call it unlocked
|
||||
|
|
Loading…
Add table
Reference in a new issue