VirtualBox

Changeset 43185 in vbox


Ignore:
Timestamp:
Sep 5, 2012 9:00:05 AM (12 years ago)
Author:
vboxsync
Message:

Main/Machine: fix lock order violation on machine unregistration

File:
1 edited

Legend:

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

    r43063 r43185  
    847847    Guid uuidMachine(getId());
    848848
     849    /* the lock is no more necessary (SessionMachine is uninitialized) */
     850    alock.release();
     851
    849852    /* XXX This will fail with
    850853     *   "cannot be closed because it is still attached to 1 virtual machines"
     
    853856    if (!uuidMachine.isEmpty())     // can be empty if we're called from a failure of Machine::init
    854857        mParent->unregisterMachineMedia(uuidMachine);
    855 
    856     /* the lock is no more necessary (SessionMachine is uninitialized) */
    857     alock.release();
    858858
    859859    // has machine been modified?
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