mirror of
https://github.com/i2p/i2p.i2p.git
synced 2024-12-06 19:27:00 +01:00
SSU: Rewrite/fix previous Java 7 (Android) fix
Update checklist to specify bootclasspath, so these are caught in the future bump -16-rc
This commit is contained in:
@@ -18,7 +18,7 @@ public class RouterVersion {
|
||||
/** deprecated */
|
||||
public final static String ID = "Git";
|
||||
public final static String VERSION = CoreVersion.VERSION;
|
||||
public final static long BUILD = 15;
|
||||
public final static long BUILD = 16;
|
||||
|
||||
/** for example "-test" */
|
||||
public final static String EXTRA = "-rc";
|
||||
|
||||
@@ -1736,12 +1736,9 @@ public class UDPTransport extends TransportImpl implements TimedWeightedPriority
|
||||
Long id = Long.valueOf(peer.getRcvConnID());
|
||||
PeerStateDestroyed oldPSD;
|
||||
synchronized(_addDropLock) {
|
||||
if (_recentlyClosedConnIDs.containsKey(id)){
|
||||
oldPSD = _recentlyClosedConnIDs.put(id, peer);
|
||||
oldPSD = _recentlyClosedConnIDs.get(id);
|
||||
}else{
|
||||
oldPSD = _recentlyClosedConnIDs.get(id);
|
||||
}
|
||||
oldPSD = _recentlyClosedConnIDs.put(id, peer);
|
||||
if (oldPSD != null)
|
||||
_recentlyClosedConnIDs.put(id, oldPSD); // put the old one back
|
||||
}
|
||||
if (oldPSD != null)
|
||||
peer.kill();
|
||||
@@ -1933,15 +1930,12 @@ public class UDPTransport extends TransportImpl implements TimedWeightedPriority
|
||||
PeerState2 state2 = (PeerState2) oldPeer;
|
||||
Long id = Long.valueOf(state2.getRcvConnID());
|
||||
PeerStateDestroyed newPSD = new PeerStateDestroyed(_context, this, state2);
|
||||
PeerStateDestroyed oldPSD;
|
||||
if (_recentlyClosedConnIDs.containsKey(id)){
|
||||
oldPSD = _recentlyClosedConnIDs.put(id, newPSD);
|
||||
oldPSD = _recentlyClosedConnIDs.get(id);
|
||||
}else{
|
||||
oldPSD = _recentlyClosedConnIDs.get(id);
|
||||
}
|
||||
if (oldPSD != null)
|
||||
PeerStateDestroyed oldPSD = _recentlyClosedConnIDs.put(id, newPSD);
|
||||
if (oldPSD != null) {
|
||||
// put the old one back, kill new one
|
||||
_recentlyClosedConnIDs.put(id, oldPSD);
|
||||
newPSD.kill();
|
||||
}
|
||||
_peersByConnID.remove(id);
|
||||
}
|
||||
}
|
||||
@@ -2198,15 +2192,12 @@ public class UDPTransport extends TransportImpl implements TimedWeightedPriority
|
||||
PeerState2 state2 = (PeerState2) peer;
|
||||
Long id = Long.valueOf(state2.getRcvConnID());
|
||||
PeerStateDestroyed newPSD = new PeerStateDestroyed(_context, this, state2);
|
||||
PeerStateDestroyed oldPSD;
|
||||
if (_recentlyClosedConnIDs.containsKey(id)){
|
||||
oldPSD = _recentlyClosedConnIDs.put(id, newPSD);
|
||||
oldPSD = _recentlyClosedConnIDs.get(id);
|
||||
}else{
|
||||
oldPSD = _recentlyClosedConnIDs.get(id);
|
||||
}
|
||||
if (oldPSD != null)
|
||||
PeerStateDestroyed oldPSD = _recentlyClosedConnIDs.put(id, newPSD);
|
||||
if (oldPSD != null) {
|
||||
// put the old one back, kill new one
|
||||
_recentlyClosedConnIDs.put(id, oldPSD);
|
||||
newPSD.kill();
|
||||
}
|
||||
_peersByConnID.remove(id);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user