diff --git a/src/main/java/emu/grasscutter/server/packet/recv/HandlerPlayerForceExitReq.java b/src/main/java/emu/grasscutter/server/packet/recv/HandlerPlayerForceExitReq.java index 84943757d..4f578021a 100644 --- a/src/main/java/emu/grasscutter/server/packet/recv/HandlerPlayerForceExitReq.java +++ b/src/main/java/emu/grasscutter/server/packet/recv/HandlerPlayerForceExitReq.java @@ -12,6 +12,17 @@ public class HandlerPlayerForceExitReq extends PacketHandler { public void handle(GameSession session, byte[] header, byte[] payload) throws Exception { // Client should auto disconnect right now session.send(new BasePacket(PacketOpcodes.PlayerForceExitRsp)); - session.close(); + new Thread(){ + @Override + public void run() { + try { + Thread.sleep(1000);// disconnect after 1 seconds + } catch (InterruptedException e) { + e.printStackTrace(); + } + session.close(); + super.run(); + } + }.start(); } }