Skip to content

Commit

Permalink
fix: remove a possible spam
Browse files Browse the repository at this point in the history
  • Loading branch information
lj2000lj committed Sep 22, 2021
1 parent 35c5539 commit 95e4042
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main/java/cn/apisium/uniporter/Decoder.java
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,11 @@ public static void clearHandler(ChannelHandlerContext context) {
names.addAll(original);
// Keep the tail handler
names.remove(Constants.DEFAULT_TAIL_ID);
names.forEach(context.channel().pipeline()::remove);
try {
names.forEach(context.channel().pipeline()::remove);
} catch (Throwable e) {
// Ignored for known possible throwable might occur here.
}
} catch (Throwable e) {
e.printStackTrace();
}
Expand Down

0 comments on commit 95e4042

Please sign in to comment.