Changeset 4157


Ignore:
Timestamp:
Dec 13, 2007, 8:19:52 PM (14 years ago)
Author:
charles
Message:

fix crash on shutdown on natpmp routers reported by SoftwareElves?

Location:
trunk/libtransmission
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/natpmp.c

    r4155 r4157  
    8686{
    8787    assert( !nat->isMapped );
    88     assert( ( nat->state == TR_NATPMP_IDLE ) || ( nat->state == TR_NATPMP_ERR ) );
     88    assert( ( nat->state == TR_NATPMP_IDLE )
     89         || ( nat->state == TR_NATPMP_ERR )
     90         || ( nat->state == TR_NATPMP_DISCOVER ) );
    8991
    9092    closenatpmp( &nat->natpmp );
  • trunk/libtransmission/upnp.c

    r4154 r4157  
    6666{
    6767    assert( !handle->isMapped );
    68     assert( ( handle->state == TR_UPNP_IDLE ) || ( handle->state == TR_UPNP_ERR ) );
     68    assert( ( handle->state == TR_UPNP_IDLE )
     69         || ( handle->state == TR_UPNP_ERR )
     70         || ( handle->state == TR_UPNP_DISCOVER ) );
    6971
    7072    if( handle->hasDiscovered )
Note: See TracChangeset for help on using the changeset viewer.