Skip to content
Snippets Groups Projects
Commit 1a9b115b authored by Niko Ehrenfeuchter's avatar Niko Ehrenfeuchter :keyboard:
Browse files

Fix idle / busy detection from status XML.

Refers to #13
parent e776aa59
No related branches found
No related tags found
No related merge requests found
......@@ -34,7 +34,8 @@ function ServiceIsBusy {
$StatusXml = "$($InstallationPath)\status.xml"
try {
[xml]$XML = Get-Content $StatusXml -ErrorAction Stop
if ($XML.ServiceStatus.TransferInProgress) {
# careful, we need a string comparison here:
if ($XML.ServiceStatus.TransferInProgress -eq "true") {
Return $True
} else {
Log-Debug "Service is idle, shutdown possible."
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment