diff --git a/L2J_Mobius_Underground/java/com/l2jmobius/gameserver/LoginServerThread.java b/L2J_Mobius_Underground/java/com/l2jmobius/gameserver/LoginServerThread.java index eecdf02c3f..a976fec193 100644 --- a/L2J_Mobius_Underground/java/com/l2jmobius/gameserver/LoginServerThread.java +++ b/L2J_Mobius_Underground/java/com/l2jmobius/gameserver/LoginServerThread.java @@ -550,7 +550,7 @@ public class LoginServerThread extends Thread { if (client.isDetached()) { - client.closeNow(); + client.getActiveChar().logout(); } else { diff --git a/L2J_Mobius_Underground/java/com/l2jmobius/gameserver/instancemanager/AntiFeedManager.java b/L2J_Mobius_Underground/java/com/l2jmobius/gameserver/instancemanager/AntiFeedManager.java index 6738a11ae2..1896ab3765 100644 --- a/L2J_Mobius_Underground/java/com/l2jmobius/gameserver/instancemanager/AntiFeedManager.java +++ b/L2J_Mobius_Underground/java/com/l2jmobius/gameserver/instancemanager/AntiFeedManager.java @@ -211,7 +211,7 @@ public final class AntiFeedManager */ public final void onDisconnect(L2GameClient client) { - if (client == null) + if ((client == null) || client.isDetached()) { return; }