diff options
Diffstat (limited to 'scripts/windows_conpty_enhanced_input_probe.ps1')
| -rw-r--r-- | scripts/windows_conpty_enhanced_input_probe.ps1 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/windows_conpty_enhanced_input_probe.ps1 b/scripts/windows_conpty_enhanced_input_probe.ps1 index 1e452521..559396c4 100644 --- a/scripts/windows_conpty_enhanced_input_probe.ps1 +++ b/scripts/windows_conpty_enhanced_input_probe.ps1 @@ -478,7 +478,7 @@ fn main() { } catch { Write-Host "server stop during cleanup failed: $($_.Exception.Message)" } - Wait-Process -Id $server.Id -Timeout 10 -ErrorAction SilentlyContinue + $null = $server.WaitForExit(10000) $server.Refresh() if (-not $server.HasExited) { & taskkill.exe /PID $server.Id /T /F 2>&1 | Out-Null |
