mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
HCOLL-133 Avoid duplicate closing of TCP/UDP replicators
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user