fixes the restart check

This commit is contained in:
Shannon
2017-06-21 18:34:22 +10:00
parent 68e287cf12
commit 6d81705ece
2 changed files with 2 additions and 2 deletions

View File

@@ -132,7 +132,7 @@
packageResource.checkRestart(pack).then(function (d) {
count++;
//if there is an id it means it's not restarted yet but we'll limit it to only check 10 times
if (d.restartId && count < 10) {
if (d.isRestarting && count < 10) {
checkRestart();
}
else {

View File

@@ -209,7 +209,7 @@
packageResource.checkRestart(pack).then(function (d) {
count++;
//if there is an id it means it's not restarted yet but we'll limit it to only check 10 times
if (d.restartId && count < 10) {
if (d.isRestarting && count < 10) {
checkRestart();
}
else {