VirtualBox

Ignore:
Timestamp:
Oct 30, 2008 9:58:59 PM (16 years ago)
Author:
vboxsync
Message:

Main: Fixed: Closing sessions was not always noticed by the server which caused a hang during poweroff (regression after adding spawning session watchdog).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/MachineImpl.cpp

    r13638 r13696  
    38343834#if defined (RT_OS_WINDOWS)
    38353835bool Machine::isSessionOpen (ComObjPtr <SessionMachine> &aMachine,
    3836                              HANDLE *aIPCSem /*= NULL*/)
     3836                             HANDLE *aIPCSem /*= NULL*/,
     3837                             bool aAllowClosing /*= false*/)
    38373838#elif defined (RT_OS_OS2)
    38383839bool Machine::isSessionOpen (ComObjPtr <SessionMachine> &aMachine,
    3839                              HMTX *aIPCSem /*= NULL*/);
     3840                             HMTX *aIPCSem /*= NULL*/,
     3841                             bool aAllowClosing /*= false*/);
    38403842#else
    3841 bool Machine::isSessionOpen (ComObjPtr <SessionMachine> &aMachine)
     3843bool Machine::isSessionOpen (ComObjPtr <SessionMachine> &aMachine,
     3844                             bool aAllowClosing /*= false*/)
    38423845#endif
    38433846{
     
    38513854    AutoReadLock alock (this);
    38523855
    3853     if (mData->mSession.mState == SessionState_Open)
     3856    if (mData->mSession.mState == SessionState_Open ||
     3857        (aAllowClosing && mData->mSession.mState == SessionState_Closing))
    38543858    {
    38553859        AssertReturn (!mData->mSession.mMachine.isNull(), false);
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette