mirror of
https://github.com/SpigotMC/BungeeCord.git
synced 2024-12-25 01:57:55 +01:00
#3287: Fix HttpHandler calls done method twice
This commit is contained in:
parent
c8e876bfe2
commit
9ced5ce131
@ -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();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user