Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(game): legacy commands #239

Open
wants to merge 14 commits into
base: master
Choose a base branch
from
Open
Prev Previous commit
Next Next commit
fix(game): disconnect would not remove logged in status
  • Loading branch information
MeikelLP committed Nov 27, 2024
commit 4318bcf187a7fe527fca6ae2510b33a3cc13282a
4 changes: 3 additions & 1 deletion src/Libraries/Game.Server/GameConnection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ public class GameConnection : Connection, IGameConnection

public GameConnection(IServerBase server, TcpClient client, ILogger<GameConnection> logger,
PluginExecutor pluginExecutor, IWorld world,
[FromKeyedServices(HostingOptions.ModeGame)] IPacketReader packetReader,
[FromKeyedServices(HostingOptions.ModeGame)]
IPacketReader packetReader,
ICacheManager cacheManager)
: base(logger, pluginExecutor, packetReader)
{
Expand Down Expand Up @@ -72,6 +73,7 @@ protected override async Task OnClose(bool expected = true)


_cacheManager.Server.DelAllAsync($"player:{Player!.Player.Id}");
await _cacheManager.Del($"account:token:{Player.Player.AccountId}");
}

await Server.RemoveConnection(this);
Expand Down