VirtualBox

Ignore:
Timestamp:
Mar 1, 2016 3:16:06 PM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
105792
Message:

FE/Qt: bugref:8200: Runtime UI: Stability fix for PowerUp procedure: Using actual machine state instead of cached one when necessary.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.cpp

    r59816 r59888  
    213213            return false;
    214214
    215     /* Check if we missed a really quick termination after successful startup: */
    216     if (isTurnedOff())
    217         return false;
     215    /* Check if we missed a really quick termination after successful powerUp().
     216     * We should take into account the fact of async machine-state arrival.
     217     * And we don't even want to loop at this point to handle posted
     218     * machine-state events, so we are relying onto CMachine getter
     219     * to return the fresh state of the thing we want. */
     220    const KMachineState ms = machine().GetState();
     221    switch (ms)
     222    {
     223        case KMachineState_PoweredOff:
     224        case KMachineState_Saved:
     225        case KMachineState_Teleported:
     226        case KMachineState_Aborted:
     227            return false;
     228        default:
     229            break;
     230    }
    218231
    219232    /* Postprocess initialization: */
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