- Timestamp:
- Nov 16, 2009 4:25:24 PM (15 years ago)
- Location:
- trunk/src/VBox/Main
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/ConsoleImpl.cpp
r24703 r24704 5777 5777 5778 5778 /* Change the machine state from Running to Paused. */ 5779 /** @todo Live Migration: Deal with Pause happening before VMR3Teleport! */ 5779 5780 AssertBreak(that->mMachineState == MachineState_Running); 5780 5781 that->setMachineState(MachineState_Paused); -
trunk/src/VBox/Main/MachineImpl.cpp
r24685 r24704 9311 9311 9312 9312 /* 9313 * Now grab the object lock and do the update9313 * Now grab the object lock, validate the state and do the update. 9314 9314 */ 9315 9315 AutoCaller autoCaller(this); … … 9319 9319 9320 9320 AssertReturn(mHWData->mPropertyServiceActive, VBOX_E_INVALID_OBJECT_STATE); 9321 9322 HRESULT rc = checkStateDependency(MutableStateDep); 9323 CheckComRCReturnRC(rc); 9321 switch (mData->mMachineState) 9322 { 9323 case MachineState_Paused: 9324 case MachineState_Running: 9325 case MachineState_Teleporting: 9326 case MachineState_TeleportingPausedVM: 9327 case MachineState_LiveSnapshotting: 9328 case MachineState_Saving: 9329 break; 9330 9331 default: 9332 AssertMsgFailedReturn(("%s\n", Global::stringifyMachineState(mData->mMachineState)), 9333 VBOX_E_INVALID_VM_STATE); 9334 } 9324 9335 9325 9336 mHWData.backup();
Note:
See TracChangeset
for help on using the changeset viewer.