Skip to content

Commit 2694256

Browse files
committed
Fix condition nesting to prevent erroneous ConnectionClosedException throws
1 parent 25a2d06 commit 2694256

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tc-client/src/main/java/com/tc/object/ClientEntityManagerImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -497,9 +497,9 @@ private Invocation.Task queueInFlightMessage(EntityID eid, Supplier<NetworkVoltr
497497
if (!channel.getProductID().isReconnectEnabled()) {
498498
throwClosedExceptionOnMessage(inFlight, "connection not capable of resend");
499499
}
500-
} else {
501-
throwClosedExceptionOnMessage(inFlight, "Connection closed before sending message");
502500
}
501+
} else {
502+
throwClosedExceptionOnMessage(inFlight, "Connection closed before sending message");
503503
}
504504
return () -> {
505505
if (inFlight.cancel()) {

0 commit comments

Comments
 (0)