forked from I2P_Developers/i2p.i2p
@@ -18,7 +18,7 @@ public class RouterVersion {
|
||||
/** deprecated */
|
||||
public final static String ID = "Monotone";
|
||||
public final static String VERSION = CoreVersion.VERSION;
|
||||
public final static long BUILD = 13;
|
||||
public final static long BUILD = 14;
|
||||
|
||||
/** for example "-test" */
|
||||
public final static String EXTRA = "";
|
||||
|
||||
@@ -2455,7 +2455,7 @@ public class UDPTransport extends TransportImpl implements TimedWeightedPriority
|
||||
// warning, this calls back into us with allowRebuildRouterInfo = false,
|
||||
// via CSFI.createAddresses->TM.getAddresses()->updateAddress()->REA
|
||||
if (allowRebuildRouterInfo)
|
||||
_context.router().rebuildRouterInfo();
|
||||
rebuildRouterInfo();
|
||||
} else {
|
||||
addr = null;
|
||||
}
|
||||
@@ -2510,11 +2510,35 @@ public class UDPTransport extends TransportImpl implements TimedWeightedPriority
|
||||
// warning, this calls back into us with allowRebuildRouterInfo = false,
|
||||
// via CSFI.createAddresses->TM.getAddresses()->updateAddress()->REA
|
||||
if (allowRebuildRouterInfo)
|
||||
_context.router().rebuildRouterInfo();
|
||||
rebuildRouterInfo();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Avoid deadlocks part 999
|
||||
* @since 0.9.49
|
||||
*/
|
||||
private void rebuildRouterInfo() {
|
||||
(new RebuildEvent()).schedule(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* @since 0.9.49
|
||||
*/
|
||||
private class RebuildEvent extends SimpleTimer2.TimedEvent {
|
||||
/**
|
||||
* Caller must schedule
|
||||
*/
|
||||
public RebuildEvent() {
|
||||
super(_context.simpleTimer2());
|
||||
}
|
||||
public void timeReached() {
|
||||
_context.router().rebuildRouterInfo(true);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Simple fetch of stored IP and port, since
|
||||
* we don't put them in the real, published RouterAddress anymore
|
||||
|
||||
Reference in New Issue
Block a user