Skip to content
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
fix: less bug report in dalamud log.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchiDog1998 committed Jun 29, 2023
1 parent 3a8cffe commit da6faec
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
3 changes: 2 additions & 1 deletion Resources/AnimationLockTime.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@
"2255": 0.6,
"2258": 0.6,
"2259": 0.35,
"2262": 0.8,
"2263": 0.35,
"2264": 0.6,
"2267": 0.6,
Expand Down Expand Up @@ -144,7 +145,7 @@
"3612": 0.6,
"3613": 0.6,
"3614": 0.6,
"3615": 0.1,
"3615": 0.6,
"4262": 0.6,
"4401": 0.6,
"4402": 0.6,
Expand Down
2 changes: 2 additions & 0 deletions Resources/HostileCastingArea.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@
8039,
8367,
8581,
9414,
9416,
9523,
9660,
9665,
Expand Down
14 changes: 12 additions & 2 deletions RotationSolver/Updaters/MajorUpdater.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ internal static class MajorUpdater
#endif

static bool _showed;
static Exception _threadException;

//static int count = 0;
private static void FrameworkUpdate(Framework framework)
Expand Down Expand Up @@ -89,7 +90,11 @@ private static void FrameworkUpdate(Framework framework)
}
catch (Exception ex)
{
PluginLog.Error(ex, "Main Thread Exception");
if(_threadException != ex)
{
_threadException = ex;
PluginLog.Error(ex, "Main Thread Exception");
}
}

if (Service.Config.UseWorkTask)
Expand Down Expand Up @@ -118,6 +123,7 @@ public static void Enable()
}

static bool _work;
static Exception _innerException;
private static void UpdateWork()
{
if (!IsValid)
Expand Down Expand Up @@ -150,7 +156,11 @@ private static void UpdateWork()
}
catch (Exception ex)
{
PluginLog.Error(ex, "Inner Worker Exception");
if(_innerException != ex)
{
_innerException = ex;
PluginLog.Error(ex, "Inner Worker Exception");
}
}

_work = false;
Expand Down

0 comments on commit da6faec

Please sign in to comment.