mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-12-23 00:51:01 +03:00
writeAndFlush
This commit is contained in:
parent
fdb7da1460
commit
7f952af1b9
2 changed files with 2 additions and 2 deletions
|
@ -20,7 +20,7 @@ public String getType() {
|
|||
@Override
|
||||
public void execute(ChannelHandlerContext ctx, WebSocketFrame frame) {
|
||||
LogHelper.info("Echo: %s",echo);
|
||||
ctx.channel().write(WebSocketFrameHandler.gson.toJson(new Result(echo)));
|
||||
ctx.channel().writeAndFlush(WebSocketFrameHandler.gson.toJson(new Result(echo)));
|
||||
}
|
||||
public class Result
|
||||
{
|
||||
|
|
|
@ -67,7 +67,7 @@ public void execute(ChannelHandlerContext ctx, WebSocketFrame frame) throws Exce
|
|||
server.config.hwidHandler.check(hwid, result.username);
|
||||
} catch (AuthException | HWIDException e)
|
||||
{
|
||||
ctx.channel().write(WebSocketFrameHandler.gson.toJson(new ErrorResult(e.getMessage())));
|
||||
ctx.channel().writeAndFlush(WebSocketFrameHandler.gson.toJson(new ErrorResult(e.getMessage())));
|
||||
}
|
||||
}
|
||||
public class ErrorResult
|
||||
|
|
Loading…
Reference in a new issue