Skip to content

The agent that grows with you

fix(desktop-update): drop the dead WinForms pump from the ack wait

Tekniumd024a9c49495
diff --git a/scripts/desktop-update/windows.ps1 b/scripts/desktop-update/windows.ps1
index 320db0d845b..6c9bcc01675 100644
--- a/scripts/desktop-update/windows.ps1
+++ b/scripts/desktop-update/windows.ps1
@@ -308,7 +308,6 @@ function Publish-UiEvent([string]$Status, [string]$Message) {
$deliveryWait = [System.Diagnostics.Stopwatch]::StartNew()
while ($script:UiState.acknowledged_receipt -cne $receipt -and $deliveryWait.Elapsed.TotalSeconds -lt 10) {
Start-Sleep -Milliseconds 50
- if ($script:Ui) { [System.Windows.Forms.Application]::DoEvents() }
}
if ($script:UiState.acknowledged_receipt -ceq $receipt) {
Write-HandoffLog "shim: terminal state '$Status' acknowledged by the window"