VirtualBox

Changeset 90751 in vbox for trunk


Ignore:
Timestamp:
Aug 19, 2021 3:31:22 PM (3 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:8161: VirtualBox Manager: Fixing regression for r146312; On COM cleanup we should kill cloud update tasks, no time to wait until they done.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserAbstractModel.cpp

    r90698 r90751  
    751751
    752752    /* Finally, stop all cloud updates: */
    753     stopCloudUpdates();
     753    stopCloudUpdates(true /* forced? */);
    754754}
    755755
     
    18281828}
    18291829
    1830 void UIChooserAbstractModel::stopCloudUpdates()
     1830void UIChooserAbstractModel::stopCloudUpdates(bool fForced /* = false */)
    18311831{
    18321832    /* Stop all cloud entity updates currently being performed: */
     
    18421842            /* Wait for cloud profile refresh task to complete,
    18431843             * then delete the task itself manually: */
    1844             pTask->cancel();
     1844            if (!fForced)
     1845                pTask->cancel();
    18451846            delete pTask;
    18461847        }
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserAbstractModel.h

    r90698 r90751  
    355355    /** @name Cloud update stuff.
    356356      * @{ */
    357         /** Stops all cloud updates. */
    358         void stopCloudUpdates();
     357        /** Stops all cloud updates.
     358          * @param  fForced  Brings whether cloud updates should be killed. */
     359        void stopCloudUpdates(bool fForced = false);
    359360    /** @} */
    360361
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