VirtualBox

Changeset 73170 in vbox for trunk/src/VBox/Main/src-server


Ignore:
Timestamp:
Jul 17, 2018 9:16:00 AM (7 years ago)
Author:
vboxsync
Message:

bugref:9152. Fixed object init, must report init success otherwise it remains in the initial "NotReady" state.

File:
1 edited

Legend:

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

    r73167 r73170  
    6262HRESULT CloudUserProfileManager::init(VirtualBox *aParent)
    6363{
     64    /* Enclose the state transition NotReady->InInit->Ready */
     65    AutoInitSpan autoInitSpan(this);
     66    AssertReturn(autoInitSpan.isOk(), E_FAIL);
     67
    6468    unconst(mParent) = aParent;
    6569    mSupportedProviders.clear();
    6670    mSupportedProviders.push_back(CloudProviderId_OCI);
     71
     72    autoInitSpan.setSucceeded();
    6773    return S_OK;
    6874}
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