Changeset 51903 in vbox for trunk/src/VBox/Main/src-client
- Timestamp:
- Jul 7, 2014 1:03:49 PM (11 years ago)
- svn:sync-xref-src-repo-rev:
- 94779
- Location:
- trunk/src/VBox/Main/src-client
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/ConsoleImpl.cpp
r51765 r51903 7177 7177 7178 7178 LogRel(("Console::powerDown(): A request to power off the VM has been issued (mMachineState=%s, InUninit=%d)\n", 7179 Global::stringifyMachineState(mMachineState), autoCaller.state() ==InUninit));7179 Global::stringifyMachineState(mMachineState), getObjectState().getState() == ObjectState::InUninit)); 7180 7180 7181 7181 /* Check if we need to power off the VM. In case of mVMPoweredOff=true, the … … 7320 7320 /* If we are called from Console::uninit(), then try to destroy the VM even 7321 7321 * on failure (this will most likely fail too, but what to do?..) */ 7322 if (RT_SUCCESS(vrc) || autoCaller.state() ==InUninit)7322 if (RT_SUCCESS(vrc) || getObjectState().getState() == ObjectState::InUninit) 7323 7323 { 7324 7324 /* If the machine has a USB controller, release all USB devices … … 7518 7518 { 7519 7519 /* sanity check */ 7520 AssertReturn( AutoCaller(this).state() == InInit ||7521 isWriteLockOnCurrentThread(), E_FAIL);7520 AssertReturn( getObjectState().getState() == ObjectState::InInit 7521 || isWriteLockOnCurrentThread(), E_FAIL); 7522 7522 7523 7523 LogFlowThisFunc(("Entering\n")); … … 7863 7863 * 2) VM-(guest-)initiated power off. */ 7864 7864 AssertReturnVoid( autoCaller.isOk() 7865 || autoCaller.state() ==InUninit);7865 || that->getObjectState().getState() == ObjectState::InUninit); 7866 7866 7867 7867 switch (enmState) -
trunk/src/VBox/Main/src-client/SessionImpl.cpp
r51612 r51903 475 475 AutoCaller autoCaller(this); 476 476 477 if ( autoCaller.state() !=Ready)477 if (getObjectState().getState() != ObjectState::Ready) 478 478 { 479 479 /* … … 514 514 HRESULT rc = S_OK; 515 515 516 if ( autoCaller.state() ==Ready)516 if (getObjectState().getState() == ObjectState::Ready) 517 517 { 518 518 /* close() needs write lock */ … … 536 536 rc = unlockMachine(false /* aFinalRelease */, true /* aFromServer */); 537 537 } 538 else if ( autoCaller.state() ==InUninit)538 else if (getObjectState().getState() == ObjectState::InUninit) 539 539 { 540 540 /*
Note:
See TracChangeset
for help on using the changeset viewer.