Skip to content

Commit

Permalink
Merge pull request #816 from Wartori54/everest-splash-fixes-4
Browse files Browse the repository at this point in the history
Fix different failure checks in StopSplash
  • Loading branch information
microlith57 authored and maddie480 committed Sep 7, 2024
1 parent 932a971 commit 643142e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Celeste.Mod.mm/Mod/Everest/EverestSplashHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,10 @@ public static void StopSplash() {
Environment.SetEnvironmentVariable("EVEREST_SKIP_REQUEST_FOCUS_AFTER_SPLASH", "1");
}
if (splashPipeServerStream == null) return; // If the splash never ran, no-op
if (!splashPipeServerStreamConnection.IsCompleted || !lastFlush.IsCompletedSuccessfully) {
if (!splashPipeServerStreamConnection.IsCompleted // Exact same checks from `SendMessageToSplash`
|| !splashPipeServerStream.IsConnected
|| (lastFlush != null &&
!lastFlush.IsCompletedSuccessfully)) {
Logger.Error("EverestSplash", "Could not connect to splash");
if (!splashProcess.HasExited) { // if it hangs up, just kill it
splashProcess.Kill();
Expand Down

0 comments on commit 643142e

Please sign in to comment.