mirror of
https://github.com/unraid/webgui.git
synced 2026-04-20 08:51:29 -05:00
Increase VM wait for shutdown time to 20s
This commit is contained in:
@@ -27,7 +27,7 @@ foreach ($vms as $vm) {
|
||||
case 'stop':
|
||||
if ($state!='running') continue;
|
||||
$result = $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 ($result['success'] && $lv->domain_get_state($domName)=='running') {sleep(1); if(!--$n) break;}
|
||||
break;
|
||||
case 'start':
|
||||
|
||||
Reference in New Issue
Block a user