mirror of
https://github.com/transmission/transmission
synced 2024-12-26 01:27:28 +00:00
fix the 500ms remap reported by Chinstrap
This commit is contained in:
parent
2742fbb3f4
commit
c8c9012697
1 changed files with 2 additions and 2 deletions
|
@ -7,7 +7,7 @@
|
|||
* This exemption does not extend to derived works not owned by
|
||||
* the Transmission project.
|
||||
*
|
||||
* $Id:$
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#include <assert.h>
|
||||
|
@ -144,7 +144,7 @@ tr_natpmpPulse( struct tr_natpmp * nat, int port, int isEnabled )
|
|||
if( isEnabled && !nat->isMapped )
|
||||
nat->state = TR_NATPMP_SEND_MAP;
|
||||
|
||||
else if( nat->isMapped && time(NULL) <= nat->renewTime )
|
||||
else if( nat->isMapped && time(NULL) >= nat->renewTime )
|
||||
nat->state = TR_NATPMP_SEND_MAP;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue