mirror of
https://github.com/unraid/webgui.git
synced 2026-04-23 10:38:50 -05:00
Change VM shutdown wait timer to 20s
This commit is contained in:
@@ -118,10 +118,9 @@ switch ($action) {
|
||||
$arrResponse = $lv->domain_shutdown($domName) ?
|
||||
['success' => true, 'state' => $lv->domain_get_state($domName)] :
|
||||
['error' => $lv->get_last_error()];
|
||||
$n = 10; // wait for VM to die
|
||||
$n = 20; // wait for VM to die
|
||||
while ($arrResponse['success'] && $lv->domain_get_state($domName)=='running') {
|
||||
sleep(1);
|
||||
if(!--$n) break;
|
||||
sleep(1); if(!--$n) break;
|
||||
}
|
||||
break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user