Changeset 10171


Ignore:
Timestamp:
Feb 11, 2010, 2:28:40 PM (12 years ago)
Author:
charles
Message:

(trunk libT) #2892 "changing port number doesn't actually change until program restart" -- possible fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/port-forwarding.c

    r9979 r10171  
    176176    tr_ninf( getKey( ), "%s", _( "Stopped" ) );
    177177    natPulse( s, FALSE );
     178
    178179    tr_natpmpClose( s->natpmp );
    179180    s->natpmp = NULL;
     181    s->natpmpStatus = TR_PORT_UNMAPPED;
     182
    180183    tr_upnpClose( s->upnp );
    181184    s->upnp = NULL;
     185    s->upnpStatus = TR_PORT_UNMAPPED;
     186
    182187    stop_timer( s );
    183188}
     
    218223    if( s->isEnabled )
    219224    {
    220         stop_timer( s );
     225        stop_forwarding( s );
    221226        start_timer( s );
    222227    }
Note: See TracChangeset for help on using the changeset viewer.