Skip to content

Commit

Permalink
fix(chat): wrong remove client logic
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaojiuwo1993 committed Oct 24, 2023
1 parent 36daaaf commit a480ebd
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/Servers/Chat/src/Application/Client.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}
}

0 comments on commit a480ebd

Please sign in to comment.