VirtualBox

Changeset 29898 in vbox for trunk/src/VBox


Ignore:
Timestamp:
May 31, 2010 12:29:28 PM (15 years ago)
Author:
vboxsync
Message:

Guest Control: Clean up call list on client disconnection as well.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/GuestControl/service.cpp

    r29867 r29898  
    436436    int rc = VINF_SUCCESS;
    437437
     438    CallListIter itCall = mClientList.begin();
     439    while (itCall != mClientList.end())
     440    {
     441        if (itCall->mClientID == u32ClientID)
     442        {       
     443            itCall = mClientList.erase(itCall);
     444        }
     445        else
     446            itCall++;
     447    }
     448
    438449    ClientContextsListIter it = mClientContextsList.begin();
    439450    while (   it != mClientContextsList.end()
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