mirror of
https://github.com/apache/activemq.git
synced 2025-02-18 07:56:20 +00:00
AMQ-6820 - Properly handle ClosedChannelException
When a ClosedChannelException occurs inside SelectorSelection properly call the transport listener onError() method to handle cleanup and logging. (cherry picked from commit 6e33507bf2fc2acea9f61e230cf8e2a9cbccc3ce)
This commit is contained in:
parent
592b31343e
commit
3ef457125b
@ -44,7 +44,7 @@ public final class SelectorSelection {
|
||||
try {
|
||||
SelectorSelection.this.key = selectable.register(worker.selector, 0, SelectorSelection.this);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
onError(e);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user