Fix buddy staying online in buddy list if dc in cash shop
This commit is contained in:
1 parent
8bce0922d9
commit
1b6c0167de
1 file changed
+1
-1
@@ -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