VirtualBox

Changeset 701 in vbox


Ignore:
Timestamp:
Feb 6, 2007 11:07:11 AM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
18339
Message:

Termination fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/DrvNAT.cpp

    r700 r701  
    207207int slirp_can_output(void)
    208208{
    209     Assert(RTCritSectIsOwner(&g_pDrv->CritSect));
     209    /** Happens during termination */
     210    if (!RTCritSectIsOwner(&g_pDrv->CritSect))
     211        return 0;
    210212
    211213    if (g_pDrv)
     
    227229    if (g_pDrv)
    228230    {
    229         Assert(RTCritSectIsOwner(&g_pDrv->CritSect));
     231        /** Happens during termination */
     232        if (!RTCritSectIsOwner(&g_pDrv->CritSect))
     233            return 0;
     234
    230235        int rc = g_pDrv->pPort->pfnReceive(g_pDrv->pPort, pu8Buf, cb);
    231236        AssertRC(rc);
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