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