mirror of
https://git.lewd.wtf/PGR/ascnet
synced 2025-12-13 06:34:38 +01:00
graceful shutdown kill protocol + double session checking
This commit is contained in:
@@ -61,7 +61,7 @@ namespace AscNet.GameServer
|
||||
|
||||
public Session? SessionFromUID(long uid)
|
||||
{
|
||||
return Sessions.FirstOrDefault(x => x.Value.player.PlayerData.Id == uid).Value;
|
||||
return Sessions.Select(x => x.Value).FirstOrDefault(x => x.player.PlayerData.Id == uid);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user