#3287: Fix HttpHandler calls done method twice
This commit is contained in:
@@ -26,6 +26,7 @@ public class HttpHandler extends SimpleChannelInboundHandler<HttpObject>
|
|||||||
callback.done( null, cause );
|
callback.done( null, cause );
|
||||||
} finally
|
} finally
|
||||||
{
|
{
|
||||||
|
ctx.channel().pipeline().remove( this );
|
||||||
ctx.channel().close();
|
ctx.channel().close();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -68,6 +69,7 @@ public class HttpHandler extends SimpleChannelInboundHandler<HttpObject>
|
|||||||
callback.done( buffer.toString(), null );
|
callback.done( buffer.toString(), null );
|
||||||
} finally
|
} finally
|
||||||
{
|
{
|
||||||
|
ctx.channel().pipeline().remove( this );
|
||||||
ctx.channel().close();
|
ctx.channel().close();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user