VirtualBox

Changeset 56683 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jun 29, 2015 8:02:42 PM (9 years ago)
Author:
vboxsync
Message:

Session::uninitialize: Shut up assertion that annoys the heck out of me right now (DEBUG_bird).

File:
1 edited

Legend:

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

    r56450 r56683  
    527527        }
    528528
    529         AssertMsgReturn(   mState == SessionState_Locked
    530                         || mState == SessionState_Spawning,
    531                         ("Session is in wrong state (%ld), expected locked (%ld) or spawning (%ld)\n",
    532                          mState, SessionState_Locked, SessionState_Spawning),
    533                         VBOX_E_INVALID_VM_STATE);
     529        if (   mState == SessionState_Locked
     530            || mState == SessionState_Spawning)
     531        { /* likely */ }
     532        else
     533        {
     534#ifndef DEBUG_bird /* bird: hitting this all the time running tdAddBaseic1.py. */
     535            AssertMsgFailed(("Session is in wrong state (%d), expected locked (%d) or spawning (%d)\n",
     536                             mState, SessionState_Locked, SessionState_Spawning));
     537#endif
     538            return VBOX_E_INVALID_VM_STATE;
     539        }
    534540
    535541        /* close ourselves */
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