Compare commits

..

2 Commits

Author SHA1 Message Date
1145b900e4 Merge pull request 'Virtualbox-Wrapper - Bugfix' (#8) from feature/Virtualbox-Wrapper-Fix into develop
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #8
Reviewed-by: Aaron Hance <ah@aaronhance.me>
2025-03-23 19:01:28 +00:00
436cd86d8c Updated virtualbox wrapper as it was causing stale powershell processes to build up over time
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
- 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.
2025-03-23 17:54:55 +00:00

View File

@ -52,6 +52,7 @@ if ($Command -eq 'up') {
} }
Receive-Job $MonitorJob Receive-Job $MonitorJob
} }
Get-Job | Stop-Job | Remove-Job -Force
} elseif ($Command -eq 'down') { } elseif ($Command -eq 'down') {
Write-Output "Stopping $MachineName" Write-Output "Stopping $MachineName"
VBoxManage.exe controlvm $MachineName poweroff VBoxManage.exe controlvm $MachineName poweroff