Fix disconnect2
This commit is contained in:
@@ -316,6 +316,9 @@ public sealed class NetworkManager
|
||||
{
|
||||
if (_connections.TryRemove(conn.Id, out _))
|
||||
{
|
||||
// Notify router about disconnection for handler cleanup (e.g., DungeonHandler)
|
||||
_router.OnDisconnect(conn.Id);
|
||||
|
||||
if (_sessions.TryGet(conn.Id, out var accountId, out var token)
|
||||
&& accountId != 0 && !string.IsNullOrEmpty(token))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user