bugfix/87-client-dc-on-char-deletion #90
1 changed files with 1 additions and 2 deletions
|
@ -17,8 +17,7 @@ public class CharacterDeletionHandler : IPacketHandler<CharacterDeletePacket>
|
|||
|
||||
public async Task HandleAsync(CharacterDeletePacket packet, TcpSession session)
|
||||
{
|
||||
using var authSession = session as AuthSession;
|
||||
if (authSession == null)
|
||||
if (session is not AuthSession authSession)
|
||||
{
|
||||
session.Disconnect();
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue