VirtualBox

Ignore:
Timestamp:
Jul 31, 2010 2:29:18 AM (14 years ago)
Author:
vboxsync
Message:

VBoxHeadless.cpp: Processing events while waiting for powerUp to succeed is vital for teleportation targets.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxHeadless/VBoxHeadless.cpp

    r31070 r31260  
    10761076
    10771077        /* wait for result because there can be errors */
     1078        /** @todo The error handling here is kind of peculiar, anyone care
     1079         *        to comment why this works just fine? */
     1080        for (;;)
     1081        {
     1082            rc = progress->WaitForCompletion(500);
     1083            if (FAILED(rc))
     1084                break;
     1085
     1086            /* Processing events is vital for teleportation targets. */
     1087            gEventQ->processEventQueue(0);
     1088
     1089            BOOL fCompleted;
     1090            rc = progress->COMGETTER(Completed)(&fCompleted);
     1091            if (FAILED(rc) || fCompleted)
     1092                break;
     1093        }
     1094
    10781095        if (SUCCEEDED(progress->WaitForCompletion(-1)))
    10791096        {
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