SSU peer test:

Only fire a peer test on connection if address has changed
Reverts inadvertent change in ccb0029690e8a5921f34289dfc86fe37ef9344c6 2009?
This commit is contained in:
zzz
2016-06-22 15:20:33 +00:00
parent b819c0334a
commit ba8b2df473

View File

@@ -1008,6 +1008,7 @@ public class UDPTransport extends TransportImpl implements TimedWeightedPriority
if (fireTest) {
_context.statManager().addRateData("udp.addressTestInsteadOfUpdate", 1);
_testEvent.forceRunImmediately();
} else if (updated) {
_context.statManager().addRateData("udp.addressUpdated", 1);
Map<String, String> changes = new HashMap<String, String>();
@@ -1060,8 +1061,8 @@ public class UDPTransport extends TransportImpl implements TimedWeightedPriority
}
// deadlock thru here ticket #1699
_context.router().rebuildRouterInfo();
_testEvent.forceRunImmediately();
}
_testEvent.forceRunImmediately();
return updated;
}