VirtualBox

Changeset 61624 in vbox for trunk/src/VBox/Main


Ignore:
Timestamp:
Jun 9, 2016 3:41:07 PM (9 years ago)
Author:
vboxsync
Message:

Main: fixed lock ordering

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/VRDEServerImpl.cpp

    r61611 r61624  
    262262        {
    263263            /* Failed to enable/disable the server. Revert the internal state. */
    264             AutoMutableOrSavedOrRunningStateDependency adep2(mParent);
    265             if (SUCCEEDED(adep2.rc()))
     264            adep.add();
     265            if (SUCCEEDED(adep.rc()))
    266266            {
    267267                alock.acquire();
    268268                mData->fEnabled = !RT_BOOL(aEnabled);
    269                 AutoWriteLock mlock2(mParent COMMA_LOCKVAL_SRC_POS);
    270269                alock.release();
    271                 adep2.release();
     270                mlock.acquire();
    272271                mParent->i_setModified(Machine::IsModified_VRDEServer);
    273272            }
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