From a480ebdd4e7d2cf6a0e8e95646f13755a36ab1f7 Mon Sep 17 00:00:00 2001 From: xiaojiuwo Date: Tue, 24 Oct 2023 22:17:43 +0800 Subject: [PATCH] fix(chat): wrong remove client logic --- src/Servers/Chat/src/Application/Client.cs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/Servers/Chat/src/Application/Client.cs b/src/Servers/Chat/src/Application/Client.cs index 999072d09..580d17a82 100644 --- a/src/Servers/Chat/src/Application/Client.cs +++ b/src/Servers/Chat/src/Application/Client.cs @@ -59,14 +59,10 @@ protected override void OnDisconnected() new QuitHandler(this, req).Handle(); Info.IsLoggedIn = false; } + StorageOperation.Persistance.RemoveClient(this); base.OnDisconnected(); } protected override ISwitcher CreateSwitcher(object buffer) => new CmdSwitcher(this, UniSpyEncoding.GetString((byte[])buffer)); public RemoteClient GetRemoteClient() => _remoteClient; - protected override void OnConnected() - { - StorageOperation.Persistance.RemoveClient(this); - base.OnConnected(); - } } } \ No newline at end of file