Call latch in a finally block

This commit is contained in:
Simon Willnauer 2016-01-29 17:38:33 +01:00
parent e24fac644a
commit 51745d7272
1 changed files with 2 additions and 1 deletions

View File

@ -119,8 +119,9 @@ public class AzureRepositoryF {
IOUtils.close(node);
} catch (IOException e) {
throw new ElasticsearchException(e);
} finally {
latch.countDown();
}
latch.countDown();
}
});
node.start();