fix: disconnect on delete packet
reason: using statement with the session
This commit is contained in:
parent
b3941d2672
commit
8b294dd1ca
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