VirtualBox

Changeset 31046 in vbox


Ignore:
Timestamp:
Jul 23, 2010 9:54:33 AM (15 years ago)
Author:
vboxsync
Message:

Main: don't emit session changed event if it doesn't changed

File:
1 edited

Legend:

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

    r31019 r31046  
    27122712    LogFlowThisFunc(("mSession.mState=%s\n", Global::stringifySessionState(mData->mSession.mState)));
    27132713
     2714    SessionState_T oldState = mData->mSession.mState;
    27142715    /* Hack: in case the session is closing and there is a progress object
    27152716     * which allows waiting for the session to be closed, take the opportunity
     
    29772978        mParent->updateClientWatcher();
    29782979
    2979         /* fire an event */
    2980         mParent->onSessionStateChange(getId(), SessionState_Locked);
     2980        if (oldState != SessionState_Locked)
     2981            /* fire an event */
     2982            mParent->onSessionStateChange(getId(), SessionState_Locked);
    29812983    }
    29822984
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