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)
|
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