shutdownLatch.release not invoked in some cases

pull/365/head
Nikita 9 years ago
parent 55a2df687b
commit c20e550dae

@ -460,6 +460,7 @@ public class CommandAsyncService implements CommandAsyncExecutor {
} }
if (!details.getConnectionFuture().isSuccess()) { if (!details.getConnectionFuture().isSuccess()) {
connectionManager.getShutdownLatch().release();
details.setException(convertException(details.getConnectionFuture())); details.setException(convertException(details.getConnectionFuture()));
return; return;
} }

@ -333,6 +333,7 @@ public class CommandBatchService extends CommandReactiveService {
} }
if (!connFuture.isSuccess()) { if (!connFuture.isSuccess()) {
connectionManager.getShutdownLatch().release();
details.setException(convertException(connFuture)); details.setException(convertException(connFuture));
return; return;
} }

Loading…
Cancel
Save