File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
modules/jooby-netty/src/main/java/io/jooby/internal/netty Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 9191import io .netty .handler .stream .ChunkedStream ;
9292import io .netty .handler .stream .ChunkedWriteHandler ;
9393import io .netty .handler .timeout .IdleStateHandler ;
94+ import io .netty .util .IllegalReferenceCountException ;
9495
9596public class NettyContext implements DefaultContext , ChannelFutureListener {
9697
@@ -857,8 +858,10 @@ void destroy(Throwable cause) {
857858 if (decoder != null ) {
858859 try {
859860 decoder .destroy ();
860- } catch (Exception x ) {
861- router .getLog ().debug ("body decoder destroy resulted in exception" , x );
861+ } catch (IllegalReferenceCountException ex ) {
862+ router .getLog ().trace ("decoder was released already" , ex );
863+ } catch (Exception ex ) {
864+ router .getLog ().debug ("body decoder destroy resulted in exception" , ex );
862865 }
863866 decoder = null ;
864867 }
You can’t perform that action at this time.
0 commit comments