VirtualBox

Changeset 4317 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Aug 23, 2007 3:18:33 PM (17 years ago)
Author:
vboxsync
Message:

Stop the VRDP server earlier when the VM is being powered off.

File:
1 edited

Legend:

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

    r4308 r4317  
    38803880             mMachineState, autoCaller.state() == InUninit));
    38813881
     3882    /*
     3883     *  Stop the VRDP server to prevent new clients connection while VM is being powered off.
     3884     *  (When called from uninit mConsoleVRDPServer is already destroyed.)
     3885     */
     3886    if (mConsoleVRDPServer)
     3887    {
     3888        LogFlowThisFunc (("Stopping VRDP server...\n"));
     3889
     3890        /* Leave the lock since EMT will call us back as addVMCaller in updateDisplayData(). */
     3891        alock.leave();
     3892
     3893        mConsoleVRDPServer->Stop();
     3894
     3895        alock.enter();
     3896    }
     3897
    38823898    /* First, wait for all mpVM callers to finish their work if necessary */
    38833899    if (mVMCallers > 0)
     
    39543970    if (VBOX_SUCCESS (vrc) || autoCaller.state() == InUninit)
    39553971    {
    3956         /*
    3957          *  Stop the VRDP server and release all USB device.
    3958          *  (When called from uninit mConsoleVRDPServer is already destroyed.)
    3959          */
    3960         if (mConsoleVRDPServer)
    3961         {
    3962             LogFlowThisFunc (("Stopping VRDP server...\n"));
    3963 
    3964             /* Leave the lock since EMT will call us back as addVMCaller in updateDisplayData(). */
    3965             alock.leave();
    3966 
    3967             mConsoleVRDPServer->Stop();
    3968 
    3969             alock.enter();
    3970         }
    3971 
    39723972        /* If the machine has an USB comtroller, release all USB devices
    39733973         * (symmetric to the code in captureUSBDevices()) */
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