Changeset 8311 in vbox for trunk/src/VBox/Main
- Timestamp:
- Apr 22, 2008 8:48:38 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/MachineImpl.cpp
r8310 r8311 7438 7438 } 7439 7439 7440 /* uninitialize all remote controls */ 7441 if (mData->mSession.mRemoteControls.size()) 7442 { 7443 LogFlowThisFunc (("Closing remote sessions (%d):\n", 7444 mData->mSession.mRemoteControls.size())); 7445 7446 Data::Session::RemoteControlList::iterator it = 7447 mData->mSession.mRemoteControls.begin(); 7448 while (it != mData->mSession.mRemoteControls.end()) 7449 { 7450 LogFlowThisFunc ((" Calling remoteControl->Uninitialize()...\n")); 7451 HRESULT rc = (*it)->Uninitialize(); 7452 LogFlowThisFunc ((" remoteControl->Uninitialize() returned %08X\n", rc)); 7453 if (FAILED (rc)) 7454 LogWarningThisFunc (("Forgot to close the remote session?\n")); 7455 ++ it; 7456 } 7457 mData->mSession.mRemoteControls.clear(); 7458 } 7459 7440 7460 /* 7441 7461 * An expected uninitialization can come only from #checkForDeath(). … … 7476 7496 mData->mSession.mState = SessionState_Closed; 7477 7497 mData->mSession.mType.setNull(); 7478 7479 /* uninitialize all remote controls (note that we do it after we set the7480 * session state to SessionState_Closed to make sure that uninitialized7481 * remote sessions can be immediately reopened for the same machine again7482 * once we fihish with uninit)*/7483 if (mData->mSession.mRemoteControls.size())7484 {7485 LogFlowThisFunc (("Closing remote sessions (%d):\n",7486 mData->mSession.mRemoteControls.size()));7487 7488 Data::Session::RemoteControlList::iterator it =7489 mData->mSession.mRemoteControls.begin();7490 while (it != mData->mSession.mRemoteControls.end())7491 {7492 LogFlowThisFunc ((" Calling remoteControl->Uninitialize()...\n"));7493 HRESULT rc = (*it)->Uninitialize();7494 LogFlowThisFunc ((" remoteControl->Uninitialize() returned %08X\n", rc));7495 if (FAILED (rc))7496 LogWarningThisFunc (("Forgot to close the remote session?\n"));7497 ++ it;7498 }7499 mData->mSession.mRemoteControls.clear();7500 }7501 7498 7502 7499 /* close the interprocess semaphore before leaving the shared lock */
Note:
See TracChangeset
for help on using the changeset viewer.