Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
belaban committed Sep 8, 2023
1 parent dabe6c3 commit 75caecb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/org/jgroups/blocks/cs/NioBaseServer.java
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,8 @@ public void run() {
// a key can be connectable *and* readable (https://issues.redhat.com/browse/JGRP-2531)
if(key.isConnectable()) {
SocketChannel ch=(SocketChannel)key.channel();
if(ch.finishConnect() || ch.isConnected()) {
// https://issues.redhat.com/browse/JGRP-2727
if((ch.isConnectionPending() && ch.finishConnect()) || ch.isConnected()) {
conn.clearSelectionKey(SelectionKey.OP_CONNECT);
conn.connected(true);
}
Expand Down

0 comments on commit 75caecb

Please sign in to comment.