A minor fix to take into account stopping of a vm in stopping state. We will get a concurrentmodificationexception, and end in errorinmaintenance. This behavior is consistent with how stop works for cpvm.

This commit is contained in:
abhishek 2011-01-11 17:10:35 -08:00
parent 109846f605
commit eec9f5f6f6
1 changed files with 1 additions and 1 deletions

View File

@ -2188,7 +2188,7 @@ public class StorageManagerImpl implements StorageManager, StorageService, Manag
}
//shut down the running vms
if(vmInstance.getState().equals(State.Running) || vmInstance.getState().equals(State.Starting))
if(vmInstance.getState().equals(State.Running) || vmInstance.getState().equals(State.Starting) || vmInstance.getState().equals(State.Stopping))
{
//if the instance is of type consoleproxy, call the console proxy