From 86407a237a5feb0cc2ee32dc1f4bb7e6fe330aad Mon Sep 17 00:00:00 2001 From: Eric Schultz Date: Tue, 12 Apr 2016 16:36:32 -0500 Subject: [PATCH] VM Manager: clean up virtio-iso download progress --- plugins/dynamix.vm.manager/VMajax.php | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/plugins/dynamix.vm.manager/VMajax.php b/plugins/dynamix.vm.manager/VMajax.php index 204ad0f22..9f67046fc 100644 --- a/plugins/dynamix.vm.manager/VMajax.php +++ b/plugins/dynamix.vm.manager/VMajax.php @@ -543,17 +543,15 @@ switch ($action) { // Status = running extract $arrResponse['status'] = 'Cleanup ... '; - if (!pgrep($strExtractPgrep)) { - // Examine md5 status - $strMD5StatusContents = file_get_contents($strMD5StatusFile); + // Examine md5 status + $strMD5StatusContents = file_get_contents($strMD5StatusFile); - if (strpos($strMD5StatusContents, ': FAILED') !== false) { + if (strpos($strMD5StatusContents, ': FAILED') !== false) { - // ERROR: MD5 check failed - unset($arrResponse['status']); - $arrResponse['error'] = 'MD5 verification failed, your download is incomplete or corrupted.'; + // ERROR: MD5 check failed + unset($arrResponse['status']); + $arrResponse['error'] = 'MD5 verification failed, your download is incomplete or corrupted.'; - } } } else if (!file_exists($strMD5File)) {