mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
ensure that we close() on interupt
This commit is contained in:
@@ -257,7 +257,9 @@ final class TcpReplicator<K, V> extends AbstractChannelReplicator implements Clo
|
||||
LOG.debug("onWrite - " + name);
|
||||
onWrite(key, approxTime);
|
||||
}
|
||||
} catch (BufferUnderflowException | InterruptedException | IOException |
|
||||
} catch (InterruptedException e) {
|
||||
quietClose(key, e);
|
||||
} catch (BufferUnderflowException | IOException |
|
||||
ClosedSelectorException | CancelledKeyException e) {
|
||||
if (!isClosed)
|
||||
quietClose(key, e);
|
||||
|
||||
Reference in New Issue
Block a user