ensure that we close() on interupt

This commit is contained in:
Rob Austin
2015-02-02 22:05:32 +00:00
parent 357803e0df
commit 5f627dc6b4
2 changed files with 18 additions and 14 deletions
@@ -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);