Skip to content

Commit

Permalink
bugfix: End script when GPUAdapter event is called
Browse files Browse the repository at this point in the history
Fixed an issue that prevented swap script from exiting after a GPU adapter change
  • Loading branch information
Nonary committed Oct 31, 2024
1 parent 94431cd commit f371dcc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions StreamMonitor.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f371dcc

Please sign in to comment.