Bug fixin
This commit is contained in:
@@ -159,15 +159,16 @@ public sealed partial class DungeonHandler : IClientMessageHandler
|
||||
return;
|
||||
}
|
||||
// All dungeon operations require authentication
|
||||
if (!_sessions.TryGet(connection.Id, out var accountId, out _) && opCode != DungeonOpCodes.ASSET_MANIFEST_REQUEST)
|
||||
if (!_sessions.TryGet(connection.Id, out var accountId, out _) && opCode != DungeonOpCodes.ASSET_MANIFEST_REQUEST && opCode != OpCodes.PONG)
|
||||
{
|
||||
await SendErrorAsync(connection, $"auth_required for packet: {opCode}", ct);
|
||||
return;
|
||||
}
|
||||
|
||||
// Get or create player session
|
||||
|
||||
var session = await GetOrCreateSessionAsync(connection, accountId, ct);
|
||||
if (session == null)
|
||||
if (session == null && opCode != OpCodes.PONG)
|
||||
{
|
||||
await SendErrorAsync(connection, "no_character", ct);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user