VirtualBox

Changeset 36280 in vbox


Ignore:
Timestamp:
Mar 15, 2011 10:47:13 AM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
70558
Message:

VBoxHeadless: Fix for dropping VRDP connection on guest bootup after a hard VM reset.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxHeadless/VBoxHeadless.cpp

    r36249 r36280  
    213213                        gpcev->COMGETTER(Value)(value.asOutParam());
    214214                        Utf8Str utf8Value = value;
    215                         if (utf8Value == "true")
     215
     216                        if (!mfNoLoggedInUsers) /* Only if the property really changes. */
    216217                        {
    217                             if (!mfNoLoggedInUsers) /* Only if the property really changes. */
     218                            if (   utf8Value == "true"
     219                                /* Guest property got deleted due to hard reset,
     220                                 * so it has no value anymore. */
     221                                || utf8Value.isEmpty())
    218222                            {
    219223                                mfNoLoggedInUsers = true;
     
    221225                            }
    222226                        }
     227                        else if (utf8Value == "false")
     228                            mfNoLoggedInUsers = false;
    223229                        /* Guest property got deleted due to hard reset,
    224                          * so it has no value anymore. */
     230                         * take the shortcut without touching the mfNoLoggedInUsers
     231                         * state. */
    225232                        else if (utf8Value.isEmpty())
    226                         {
    227233                            fDropConnection = true;
    228                         }
    229                         else
    230                         {
    231                             mfNoLoggedInUsers = false;
    232                         }
    233234
    234235                        if (fDropConnection)
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