← Back to team overview

linuxdcpp-team team mailing list archive

[Branch ~dcplusplus-team/dcplusplus/trunk] Rev 3033: NAT-PMP renewal

 

------------------------------------------------------------
revno: 3033
committer: poy <poy@xxxxxxxxxx>
branch nick: trunk
timestamp: Tue 2012-09-04 20:03:19 +0200
message:
  NAT-PMP renewal
modified:
  dcpp/Mapper_NATPMP.cpp


--
lp:dcplusplus
https://code.launchpad.net/~dcplusplus-team/dcplusplus/trunk

Your team Dcplusplus-team is subscribed to branch lp:dcplusplus.
To unsubscribe from this branch go to https://code.launchpad.net/~dcplusplus-team/dcplusplus/trunk/+edit-subscription
=== modified file 'dcpp/Mapper_NATPMP.cpp'
--- dcpp/Mapper_NATPMP.cpp	2012-09-04 17:58:06 +0000
+++ dcpp/Mapper_NATPMP.cpp	2012-09-04 18:03:19 +0000
@@ -105,7 +105,7 @@
 	if(sendRequest(port_, protocol, 3600)) {
 		natpmpresp_t response;
 		if(read(response) && response.type == respType(protocol) && response.pnu.newportmapping.mappedpublicport == port_) {
-			lifetime = std::min(lifetime ? lifetime : 3600, response.pnu.newportmapping.lifetime) / 60;
+			lifetime = std::min(3600, response.pnu.newportmapping.lifetime) / 60;
 			return true;
 		}
 	}