- Timestamp:
- Nov 24, 2009 1:31:21 PM (15 years ago)
- Location:
- trunk/src/VBox/Main
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/ConsoleImpl.cpp
r24882 r24899 270 270 , mVMDestroying(false) 271 271 , mVMPoweredOff(false) 272 , mVMIsAlreadyPoweringOff(false) 272 273 , mVMMDev(NULL) 273 274 , mAudioSniffer(NULL) … … 5661 5662 && that->mMachineState != MachineState_TeleportingIn 5662 5663 && that->mMachineState != MachineState_LiveSnapshotting 5663 && that->mMachineState != MachineState_Teleporting5664 5664 && that->mMachineState != MachineState_TeleportingPausedVM 5665 && !that->mVMIsAlreadyPoweringOff 5665 5666 ) 5666 5667 { … … 5761 5762 that->setMachineState(MachineState_PoweredOff); 5762 5763 break; 5763 case MachineState_Teleporting:5764 5764 case MachineState_TeleportingPausedVM: 5765 5765 /* Successfully teleported the VM. */ … … 5790 5790 case MachineState_Saving: 5791 5791 case MachineState_Restoring: 5792 case MachineState_Stopping: 5793 case MachineState_TeleportingIn: 5792 5794 /* The worker threads handles the transition. */ 5793 5795 break; -
trunk/src/VBox/Main/ConsoleImplTeleporter.cpp
r24896 r24899 769 769 770 770 autoVMCaller.release(); 771 772 pState->mptrConsole->mVMIsAlreadyPoweringOff = true; /* (Make sure we stick in the TeleportingPausedVM state.) */ 771 773 hrc = pState->mptrConsole->powerDown(); 774 pState->mptrConsole->mVMIsAlreadyPoweringOff = false; 775 772 776 pState->mptrProgress->notifyComplete(hrc); 773 777 } -
trunk/src/VBox/Main/include/ConsoleImpl.h
r24874 r24899 563 563 /** true when power down is initiated by vmstateChangeCallback (EMT) */ 564 564 bool mVMPoweredOff : 1; 565 /** true when vmstateChangeCallback shouldn't initiate a power down. */ 566 bool mVMIsAlreadyPoweringOff : 1; 565 567 566 568 /** The current network attachment type in the VM.
Note:
See TracChangeset
for help on using the changeset viewer.