AMQ-6820 - Properly handle ClosedChannelException

When a ClosedChannelException occurs inside SelectorSelection properly
call the transport listener onError() method to handle cleanup and
logging.
This commit is contained in:
Christopher L. Shannon (cshannon) 2017-09-21 08:13:42 -04:00
parent 61d3231d36
commit 6e33507bf2
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ public final class SelectorSelection {
try { try {
SelectorSelection.this.key = selectable.register(worker.selector, 0, SelectorSelection.this); SelectorSelection.this.key = selectable.register(worker.selector, 0, SelectorSelection.this);
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); onError(e);
} }
} }
}); });