VirtualBox

Ignore:
Timestamp:
Jun 8, 2021 5:34:49 PM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
145008
Message:

Main: bugref:9341: Fixed com initialization in the autostart service. Autostart service stops after VM started.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxAutostart/VBoxAutostartStart.cpp

    r89360 r89571  
    175175                    }
    176176                }
    177                 g_pSession->UnlockMachine();
     177                SessionState_T enmSessionState;
     178                CHECK_ERROR(g_pSession, COMGETTER(State)(&enmSessionState));
     179                if (SUCCEEDED(rc) && enmSessionState == SessionState_Locked)
     180                    g_pSession->UnlockMachine();
    178181            }
    179182        }
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette