Core/Networking: Fixes being disconnected when using logout button.
This commit is contained in:
@@ -444,10 +444,8 @@ namespace Game.Networking
|
||||
public override void OnClose()
|
||||
{
|
||||
lock (_worldSessionLock)
|
||||
{
|
||||
_worldSession.Dispose();
|
||||
_worldSession = null;
|
||||
}
|
||||
|
||||
base.OnClose();
|
||||
}
|
||||
|
||||
|
||||
@@ -1855,7 +1855,7 @@ namespace Game
|
||||
m_disconnects[session.GetAccountId()] = Time.UnixTime;
|
||||
|
||||
RemoveQueuedPlayer(session);
|
||||
m_sessions.TryRemove(pair.Key, out WorldSession tempSession);
|
||||
m_sessions.TryRemove(pair.Key, out _);
|
||||
session.Dispose();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user