Skip to content

Commit

Permalink
ns
Browse files Browse the repository at this point in the history
  • Loading branch information
belaban committed Feb 8, 2024
1 parent 9650dfb commit 3c6b3ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/org/jgroups/blocks/cs/TcpServer.java
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ protected void handleAccept(final Socket client_sock) throws Exception {
: new TcpConnection(client_sock, TcpServer.this);

Address peer_addr=conn.peerAddress();
synchronized(TcpServer.this) {
synchronized(this) {
boolean conn_exists=hasConnection(peer_addr),
replace=conn_exists && use_peer_connections && local_addr.compareTo(peer_addr) < 0; // bigger conn wins

Expand Down

0 comments on commit 3c6b3ad

Please sign in to comment.