VirtualBox

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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