Updated virtualbox wrapper as it was causing stale powershell processes to build up over time
- Updated `Virtualbox-Wrapper.ps1` to include `Get-Job | Stop-Job | Remove-Job -Force` at the end of execution, as the spawning of jobs was causing stale PowerShell processes to build up over time.
This commit is contained in:
parent
540444dfbf
commit
436cd86d8c
@ -52,6 +52,7 @@ if ($Command -eq 'up') {
|
||||
}
|
||||
Receive-Job $MonitorJob
|
||||
}
|
||||
Get-Job | Stop-Job | Remove-Job -Force
|
||||
} elseif ($Command -eq 'down') {
|
||||
Write-Output "Stopping $MachineName"
|
||||
VBoxManage.exe controlvm $MachineName poweroff
|
||||
|
Loading…
x
Reference in New Issue
Block a user