VirtualBox

Changeset 12658 in vbox


Ignore:
Timestamp:
Sep 22, 2008 8:37:53 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
36950
Message:

Main: Removed too strict assertion in Session::GetRemoteConsole().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/src/VBox/Main/SessionImpl.cpp

    r12014 r12658  
    270270    AutoReadLock alock (this);
    271271
    272     AssertReturn (mState == SessionState_Open, E_FAIL);
     272    AssertReturn (mState != SessionState_Closed, E_FAIL);
    273273
    274274    AssertMsgReturn (mType == SessionType_Direct && !!mConsole,
    275275                     ("This is not a direct session!\n"), E_FAIL);
     276
     277    /* return a failure if the session already transitioned to Closing
     278     * but the server hasn't processed Machine::OnSessionEnd() yet. */
     279    if (mState != SessionState_Open)
     280        return E_UNEXPECTED;
    276281
    277282    mConsole.queryInterfaceTo (aConsole);
Note: See TracChangeset for help on using the changeset viewer.

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