Dungeon fixes
This commit is contained in:
@@ -3041,17 +3041,17 @@ public sealed partial class DungeonHandler : IClientMessageHandler
|
||||
|
||||
if (session.CurrentDungeonId.HasValue)
|
||||
{
|
||||
// Delay removal from dungeon by 25 seconds to allow for reconnection
|
||||
// Delay removal from dungeon by 5 minutes to allow for reconnection
|
||||
// and to prevent abuse (disconnecting to avoid combat)
|
||||
_ = Task.Run(async () =>
|
||||
{
|
||||
await Task.Delay(TimeSpan.FromSeconds(25));
|
||||
await Task.Delay(TimeSpan.FromMinutes(5));
|
||||
await RemoveFromDungeonAsync(session, false, CancellationToken.None);
|
||||
_log.LogInformation("Player {CharacterName} removed from dungeon after 25s disconnect timeout",
|
||||
_log.LogInformation("Player {CharacterName} removed from dungeon after 5m disconnect timeout",
|
||||
session.Character?.Name ?? "Unknown");
|
||||
});
|
||||
|
||||
_log.LogInformation("Dungeon session for {CharacterName} will be removed in 25s after disconnect",
|
||||
_log.LogInformation("Dungeon session for {CharacterName} will be removed in 5m after disconnect",
|
||||
session.Character?.Name ?? "Unknown");
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user