Skip to content

Commit

Permalink
Shutdown monkeys on fail
Browse files Browse the repository at this point in the history
  • Loading branch information
Nytra committed Nov 23, 2024
1 parent d91e99d commit 77f6559
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions MonkeyLoader.Resonite.Integration/ResoniteMonkey.cs
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ bool IResoniteMonkeyInternal.EngineInit()
{
EngineInitFailed = true;
Logger.Warn(() => "OnEngineInit failed!");
Shutdown(false);
}
}
catch (Exception ex)
Expand Down Expand Up @@ -122,6 +123,7 @@ bool IResoniteMonkeyInternal.EngineReady()
{
EngineReadyFailed = true;
Logger.Warn(() => "OnEngineReady failed!");
Shutdown(false);
}
}
catch (Exception ex)
Expand Down

0 comments on commit 77f6559

Please sign in to comment.