Fix buddy staying online in buddy list if dc in cash shop

This commit is contained in:
P0nk
2024-09-13 23:17:42 +02:00
parent 8bce0922d9
commit 1b6c0167de

View File

@@ -17,7 +17,7 @@ public class DisconnectHandler extends ChannelInboundHandlerAdapter {
public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) {
if (cause instanceof DisconnectException de) {
var client = de.getClient();
transitionService.disconnect(client, true);
transitionService.disconnect(client, de.isShutdown());
} else {
ctx.fireExceptionCaught(cause);
}