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)
|
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;
|
||||||
|
|
Loading…
Reference in a new issue