#3287: Fix HttpHandler calls done method twice

This commit is contained in:
Outfluencer 2022-07-02 02:02:16 +02:00 committed by GitHub
parent c8e876bfe2
commit 9ced5ce131
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -26,6 +26,7 @@ public class HttpHandler extends SimpleChannelInboundHandler<HttpObject>
callback.done( null, cause );
} finally
{
ctx.channel().pipeline().remove( this );
ctx.channel().close();
}
}
@ -68,6 +69,7 @@ public class HttpHandler extends SimpleChannelInboundHandler<HttpObject>
callback.done( buffer.toString(), null );
} finally
{
ctx.channel().pipeline().remove( this );
ctx.channel().close();
}
}