From f371dccaa9b81433fcd16f677c8a5259df8a9394 Mon Sep 17 00:00:00 2001 From: Chase Payne Date: Thu, 31 Oct 2024 09:57:27 -0500 Subject: [PATCH] bugfix: End script when GPUAdapter event is called Fixed an issue that prevented swap script from exiting after a GPU adapter change --- StreamMonitor.ps1 | 1 + 1 file changed, 1 insertion(+) diff --git a/StreamMonitor.ps1 b/StreamMonitor.ps1 index 2d0731a..35f0c13 100644 --- a/StreamMonitor.ps1 +++ b/StreamMonitor.ps1 @@ -95,6 +95,7 @@ try { } elseif($eventName -eq "GPUAdapterChange"){ Write-Host "Script is being intentionally terminated without restoring the monitor profile because you have the Hybrid GPU Fix Script Installed, this is not considered an error. It needs to do this so that the GPU preference gets set properly once restarting sunshine." + break; } else { Wait-ForStreamEndJobToComplete