Skip to content

Commit 2b1d369

Browse files
author
Myron Scott
authored
Merge pull request #1285 from chrisdennis/connection-closed-typo
Fix condition nesting to prevent erroneous ConnectionClosedException throws
2 parents 35d363c + 2694256 commit 2b1d369

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
@@ -498,9 +498,9 @@ private Invocation.Task queueInFlightMessage(EntityID eid, Supplier<NetworkVoltr
498498
if (!channel.getProductID().isReconnectEnabled()) {
499499
throwClosedExceptionOnMessage(inFlight, "connection not capable of resend");
500500
}
501-
} else {
502-
throwClosedExceptionOnMessage(inFlight, "Connection closed before sending message");
503501
}
502+
} else {
503+
throwClosedExceptionOnMessage(inFlight, "Connection closed before sending message");
504504
}
505505
return () -> {
506506
if (inFlight.cancel()) {

0 commit comments

Comments
 (0)