HCOLL-133 don't try to close channels thrown exceptions if TCP/UDP replicator already closed

This commit is contained in:
leventov
2014-09-19 13:40:20 +04:00
parent e3a16746a5
commit 1c1724b189
2 changed files with 12 additions and 6 deletions
@@ -151,7 +151,8 @@ class UdpChannelReplicator extends AbstractChannelReplicator implements Replica.
} catch (Exception e) {
LOG.error("", e);
closeEarlyAndQuietly(key.channel());
if (!isClosed)
closeEarlyAndQuietly(key.channel());
}
}