From 1895320d54ae6424b64e9f31b22eb199902b117c Mon Sep 17 00:00:00 2001 From: MobiusDev <8391001+MobiusDevelopment@users.noreply.github.com> Date: Fri, 16 Sep 2016 22:31:58 +0000 Subject: [PATCH] Fixed offline traders reconnection issue. --- .../java/com/l2jmobius/gameserver/LoginServerThread.java | 2 +- .../l2jmobius/gameserver/instancemanager/AntiFeedManager.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; }