Skip to content

Commit a480ebd

Browse files
committed
fix(chat): wrong remove client logic
1 parent 36daaaf commit a480ebd

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/Servers/Chat/src/Application/Client.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,10 @@ protected override void OnDisconnected()
5959
new QuitHandler(this, req).Handle();
6060
Info.IsLoggedIn = false;
6161
}
62+
StorageOperation.Persistance.RemoveClient(this);
6263
base.OnDisconnected();
6364
}
6465
protected override ISwitcher CreateSwitcher(object buffer) => new CmdSwitcher(this, UniSpyEncoding.GetString((byte[])buffer));
6566
public RemoteClient GetRemoteClient() => _remoteClient;
66-
protected override void OnConnected()
67-
{
68-
StorageOperation.Persistance.RemoveClient(this);
69-
base.OnConnected();
70-
}
7167
}
7268
}

0 commit comments

Comments
 (0)