Dungeon fixes

This commit is contained in:
dingo
2026-02-09 07:46:13 -05:00
parent 469f1976bd
commit fb17d1c16b
3 changed files with 66 additions and 18 deletions
+4 -4
View File
@@ -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