1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-25 09:13:06 +00:00

fix the 500ms remap reported by Chinstrap

This commit is contained in:
Charles Kerr 2007-12-13 01:20:16 +00:00
parent 2742fbb3f4
commit c8c9012697

View file

@ -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;
}