bugfix/87-client-dc-on-char-deletion #90

Merged
rainote merged 12 commits from bugfix/87-client-dc-on-char-deletion into master 2023-11-19 14:10:19 +00:00
Showing only changes of commit 8b294dd1ca - Show all commits

View file

@ -17,8 +17,7 @@ public class CharacterDeletionHandler : IPacketHandler<CharacterDeletePacket>
public async Task HandleAsync(CharacterDeletePacket packet, TcpSession session) public async Task HandleAsync(CharacterDeletePacket packet, TcpSession session)
{ {
using var authSession = session as AuthSession; if (session is not AuthSession authSession)
if (authSession == null)
{ {
session.Disconnect(); session.Disconnect();
return; return;