(trunk libT) #2892 "changing port number doesn't actually change until program restart" -- possible fix
This commit is contained in:
parent
b21fedd454
commit
13b03ba195
|
@ -175,10 +175,15 @@ stop_forwarding( tr_shared * s )
|
|||
{
|
||||
tr_ninf( getKey( ), "%s", _( "Stopped" ) );
|
||||
natPulse( s, FALSE );
|
||||
|
||||
tr_natpmpClose( s->natpmp );
|
||||
s->natpmp = NULL;
|
||||
s->natpmpStatus = TR_PORT_UNMAPPED;
|
||||
|
||||
tr_upnpClose( s->upnp );
|
||||
s->upnp = NULL;
|
||||
s->upnpStatus = TR_PORT_UNMAPPED;
|
||||
|
||||
stop_timer( s );
|
||||
}
|
||||
|
||||
|
@ -217,7 +222,7 @@ tr_sharedPortChanged( tr_session * session )
|
|||
|
||||
if( s->isEnabled )
|
||||
{
|
||||
stop_timer( s );
|
||||
stop_forwarding( s );
|
||||
start_timer( s );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue