VirtualBox

Changeset 23841 in vbox


Ignore:
Timestamp:
Oct 17, 2009 7:07:43 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
53599
Message:

Main: Fixed assertion and double error message when cancelling a teleporter waiting for incoming connections.

Location:
trunk/src/VBox/Main
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/ConsoleImpl.cpp

    r23827 r23841  
    67626762                }
    67636763                else if (task->mTeleporterEnabled)
     6764                {
    67646765                    /* -> ConsoleImplTeleporter.cpp */
    67656766                    vrc = console->teleporterTrg(pVM, pMachine, task->mStartPaused, task->mProgress);
     6767                    if (RT_FAILURE(vrc))
     6768                        rc = E_FAIL;    /* Avoid the "Missing error message..." assertion. */
     6769                }
    67666770                else if (task->mStartPaused)
    67676771                    /* done */
     
    68216825            {
    68226826                /* If the error message is not set but we've got a failure,
    6823                  * convert the VBox status code into a meaningfulerror message.
     6827                 * convert the VBox status code into a meaningful error message.
    68246828                 * This becomes unused once all the sources of errors set the
    68256829                 * appropriate error message themselves.
  • trunk/src/VBox/Main/ConsoleImplTeleporter.cpp

    r23827 r23841  
    816816 *                              Running (false) state,
    817817 * @param   pProgress           Pointer to the progress object.
     818 *
     819 * @remarks The caller expects error information to be set on failure.
     820 * @todo    Check that all the possible failure paths sets error info...
    818821 */
    819822int
     
    918921                else if (vrc == VERR_TCP_SERVER_SHUTDOWN)
    919922                {
    920                     /** @todo this crap isn't work right wrt error info. Aaaarrrg! */
    921923                    BOOL fCancelled = TRUE;
    922924                    hrc = pProgress->COMGETTER(Canceled)(&fCancelled);
     
    931933                        vrc = VERR_TIMEOUT;
    932934                    }
    933                     pProgress->setResultCode(E_FAIL); /* ugly! */
    934935                    LogRel(("Teleporter: RTTcpServerListen aborted - %Rrc\n", vrc));
    935936                    fPowerOff = true;
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