VirtualBox

Changeset 40490 in vbox for trunk


Ignore:
Timestamp:
Mar 15, 2012 7:38:25 PM (13 years ago)
Author:
vboxsync
Message:

Main/NetworkAdapter: use the non-peer reference after commit, and not the peer one which would be the default behavior. The peer reference will become invalid after the session is closed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/NetworkAdapterImpl.cpp

    r39248 r40490  
    13091309        if (mPeer)
    13101310        {
     1311            if (!mData->mBandwidthGroup.isNull())
     1312            {
     1313                Assert(!mData->mBandwidthGroup->getPeer().isNull() && mData->mBandwidthGroup->getPeer()->getPeer().isNull());
     1314                mData->mBandwidthGroup = mData->mBandwidthGroup->getPeer();
     1315            }
    13111316            /* attach new data to the peer and reshare it */
    13121317            mPeer->mData.attach(mData);
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