Skip to content

Commit

Permalink
fix reconnect
Browse files Browse the repository at this point in the history
  • Loading branch information
crossoverJie committed Sep 12, 2024
1 parent 81ac022 commit 153cb9e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public void channelActive(ChannelHandlerContext ctx) {
@Override
public void channelInactive(ChannelHandlerContext ctx) {

if (ClientImpl.getClient().getConf().getReconnectCheck().isNeedReconnect(ClientImpl.getClient())) {
if (!ClientImpl.getClient().getConf().getReconnectCheck().isNeedReconnect(ClientImpl.getClient())) {
return;

Check warning on line 52 in cim-client-sdk/src/main/java/com/crossoverjie/cim/client/sdk/io/CIMClientHandle.java

View check run for this annotation

Codecov / codecov/patch

cim-client-sdk/src/main/java/com/crossoverjie/cim/client/sdk/io/CIMClientHandle.java#L52

Added line #L52 was not covered by tests
}
ClientImpl.getClient().setState(ClientState.State.Closed);
Expand Down

0 comments on commit 153cb9e

Please sign in to comment.