From 19c4640dbd5aafa21b13baeae8fc961caf78db3b Mon Sep 17 00:00:00 2001 From: Josh Elsasser Date: Tue, 17 Apr 2007 02:35:14 +0000 Subject: [PATCH] Fix stupid, stupid mistake preventing frontend from seeing changed public port. --- libtransmission/natpmp.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/libtransmission/natpmp.c b/libtransmission/natpmp.c index a36a08782..008498d06 100644 --- a/libtransmission/natpmp.c +++ b/libtransmission/natpmp.c @@ -256,6 +256,11 @@ tr_natpmpPulse( tr_natpmp_t * pmp, int * publicPort ) mcastpulse( pmp ); } + if( NULL != publicPort ) + { + *publicPort = -1; + } + if( pmp->active || PMP_STATE_DELETING == pmp->state ) { switch( pmp->state ) @@ -419,11 +424,6 @@ tr_natpmpPulse( tr_natpmp_t * pmp, int * publicPort ) break; } } - - if( NULL != publicPort ) - { - *publicPort = -1; - } } void