Skip to content

Commit

Permalink
fix: Added more logging and a wait to prevent Trust queueing issues
Browse files Browse the repository at this point in the history
  • Loading branch information
domesticwarlord86 committed Oct 23, 2024
1 parent da40fc1 commit 9f0d682
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions Helpers/LoadServerProfile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -511,16 +511,17 @@ internal static async Task RunDutyTask(DutyType dutyType, string profileUrl, int
{
Log.Information("Clicking Register");
Dawn.Instance.Register();
await Coroutine.Wait(8000, () => !Dawn.Instance.IsOpen);
}

await Coroutine.Wait(10000, () => DutyManager.QueueState == QueueState.CommenceAvailable || DutyManager.QueueState == QueueState.JoiningInstance);
if (DutyManager.QueueState != QueueState.None)
{
Log.Information("Queued for Dungeon");
Log.Information("Queued for Trust Dungeon");
}
else if (DutyManager.QueueState == QueueState.None)
{
Log.Error("Something went wrong, queueing again...");
Log.Error("Something went wrong attempting to queue for Trust, queueing again...");
}
}

Expand All @@ -544,11 +545,11 @@ internal static async Task RunDutyTask(DutyType dutyType, string profileUrl, int
await Coroutine.Wait(10000, () => DutyManager.QueueState == QueueState.CommenceAvailable || DutyManager.QueueState == QueueState.JoiningInstance);
if (DutyManager.QueueState != QueueState.None)
{
Log.Information("Queued for Dungeon");
Log.Information("Queued for Duty Support Dungeon");
}
else if (DutyManager.QueueState == QueueState.None)
{
Log.Error("Something went wrong, queueing again...");
Log.Error("Something went wrong attempting to queue for Duty Support, queueing again...");
}
}
else
Expand All @@ -572,11 +573,11 @@ internal static async Task RunDutyTask(DutyType dutyType, string profileUrl, int

if (DutyManager.QueueState != QueueState.None)
{
Log.Information("Queued for Dungeon");
Log.Information("Queued for regular Dungeon");
}
else if (DutyManager.QueueState == QueueState.None)
{
Log.Error("Something went wrong, queuing again...");
Log.Error("Something went wrong attempting to queue regular dungeon, queuing again...");
}
}
else
Expand Down

0 comments on commit 9f0d682

Please sign in to comment.