mirror of
https://github.com/i2p/i2p.i2p.git
synced 2026-10-22 21:53:43 +00:00
synch cleanup thx zab
This commit is contained in:
1 parent
05c3b0d391
commit
38cef14cf4
1 file changed
+7
-9
@@ -61,16 +61,14 @@ public class Destination extends KeysAndCert {
|
||||
Destination rv;
|
||||
synchronized(_cache) {
|
||||
rv = _cache.get(sk);
|
||||
}
|
||||
if (rv != null && rv.getPublicKey().equals(pk) && rv.getCertificate().equals(c)) {
|
||||
if (rv != null && rv.getPublicKey().equals(pk) && rv.getCertificate().equals(c)) {
|
||||
//if (STATS)
|
||||
// I2PAppContext.getGlobalContext().statManager().addRateData("DestCache", 1);
|
||||
return rv;
|
||||
}
|
||||
//if (STATS)
|
||||
// I2PAppContext.getGlobalContext().statManager().addRateData("DestCache", 1);
|
||||
return rv;
|
||||
}
|
||||
//if (STATS)
|
||||
// I2PAppContext.getGlobalContext().statManager().addRateData("DestCache", 0);
|
||||
rv = new Destination(pk, sk, c);
|
||||
synchronized(_cache) {
|
||||
// I2PAppContext.getGlobalContext().statManager().addRateData("DestCache", 0);
|
||||
rv = new Destination(pk, sk, c);
|
||||
_cache.put(sk, rv);
|
||||
}
|
||||
return rv;
|
||||
|
||||
Reference in new issue
Block a user