[Refactor] catch throwable instead of exception (#5942)

Co-authored-by: 孙忠健(20113660) <sunzj10@ke.com>
This commit is contained in:
ikaruga
2021-06-06 22:06:02 +08:00
committed by GitHub
parent 61af76b8fb
commit 4b23bca2be

View File

@ -78,7 +78,7 @@ public class AcceptListener implements ChannelListener<AcceptingChannel<StreamCo
// do not need to print log for this kind of exception.
// just clean up the context;
context.cleanup();
} catch (Exception e) {
} catch (Throwable e) {
// should be unexpected exception, so print warn log
if (context.getCurrentUserIdentity() != null) {
LOG.warn("connect processor exception because ", e);