Fix buddy staying online in buddy list if dc in cash shop
This commit is contained in:
@@ -17,7 +17,7 @@ public class DisconnectHandler extends ChannelInboundHandlerAdapter {
|
|||||||
public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) {
|
public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) {
|
||||||
if (cause instanceof DisconnectException de) {
|
if (cause instanceof DisconnectException de) {
|
||||||
var client = de.getClient();
|
var client = de.getClient();
|
||||||
transitionService.disconnect(client, true);
|
transitionService.disconnect(client, de.isShutdown());
|
||||||
} else {
|
} else {
|
||||||
ctx.fireExceptionCaught(cause);
|
ctx.fireExceptionCaught(cause);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user