VirtualBox

Changeset 40863 in vbox for trunk/src/VBox/Additions/WINNT


Ignore:
Timestamp:
Apr 11, 2012 8:27:48 AM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
77399
Message:

VBoxTray: guest property monitor update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxLA.cpp

    r40797 r40863  
    12461246        if (RT_SUCCESS(rc))
    12471247        {
    1248             if (pCtx->activeClient.u32ClientId != u32ActiveClientId)
     1248            bool fClientIdChanged = pCtx->activeClient.u32ClientId != u32ActiveClientId;
     1249
     1250            if (fClientIdChanged)
    12491251            {
    12501252                rc = laUpdateCurrentState(pCtx, u32ActiveClientId, u64Timestamp);
     
    12621264
    12631265                        laProcessName(pCtx);
     1266
     1267                        laDoActions(pCtx);
     1268
     1269                        pCtx->u64LastQuery = u64Timestamp;
     1270                    }
     1271                }
     1272                else
     1273                {
     1274                    /* If the client has been disconnected, do the detach actions. */
     1275                    if (fClientIdChanged)
     1276                    {
     1277                        LALOG(("LA: client disconnected\n"));
     1278
     1279                        /* laDoActions will prevent a repeated detach action. So if there
     1280                         * was a detach already, then this detach will be ignored.
     1281                         */
     1282                        pCtx->u32Action = LA_DO_DETACH;
    12641283
    12651284                        laDoActions(pCtx);
     
    12801299        {
    12811300            /* No connections, wait longer. */
    1282             u32Wait = 10000;
     1301            u32Wait = 5000;
    12831302        }
    12841303        else if (RT_FAILURE(rc))
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