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()
|
public override void OnClose()
|
||||||
{
|
{
|
||||||
lock (_worldSessionLock)
|
lock (_worldSessionLock)
|
||||||
{
|
|
||||||
_worldSession.Dispose();
|
|
||||||
_worldSession = null;
|
_worldSession = null;
|
||||||
}
|
|
||||||
base.OnClose();
|
base.OnClose();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1855,7 +1855,7 @@ namespace Game
|
|||||||
m_disconnects[session.GetAccountId()] = Time.UnixTime;
|
m_disconnects[session.GetAccountId()] = Time.UnixTime;
|
||||||
|
|
||||||
RemoveQueuedPlayer(session);
|
RemoveQueuedPlayer(session);
|
||||||
m_sessions.TryRemove(pair.Key, out WorldSession tempSession);
|
m_sessions.TryRemove(pair.Key, out _);
|
||||||
session.Dispose();
|
session.Dispose();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user