修改java sdk一处笔误

This commit is contained in:
远方夕阳 2018-10-11 21:30:08 +08:00
parent 7a78be0f3b
commit 473436a271

View File

@ -129,8 +129,8 @@ class CIMConnectorManager extends SimpleChannelInboundHandler<Object> {
@Override @Override
public void operationComplete(ChannelFuture future) throws Exception { public void operationComplete(ChannelFuture future) throws Exception {
semaphore.release();
future.removeListener(this); future.removeListener(this);
semaphore.acquire();
if(!future.isSuccess() && future.cause() != null) { if(!future.isSuccess() && future.cause() != null) {
handleConnectFailure(future.cause(),remoteAddress); handleConnectFailure(future.cause(),remoteAddress);
} }