HCOLL-133 Avoid duplicate closing of TCP/UDP replicators

This commit is contained in:
leventov
2014-09-14 15:00:34 +04:00
parent b0229b9afa
commit 69ea009f02
4 changed files with 57 additions and 58 deletions
@@ -176,17 +176,10 @@ class TcpReplicator extends AbstractChannelReplicator implements Closeable {
LOG.debug("", e);
} catch (Exception e) {
LOG.error("", e);
} finally
{
if (selector != null)
try {
selector.close();
} catch (IOException e) {
if (LOG.isDebugEnabled())
LOG.debug("", e);
}
close();
} finally {
if (!isClosed) {
close();
}
}
}