merge of '884fdac5153dc99fad97b61b1ef1172d8f0c09a9'

and 'c88b4076c5928a0e87d073abc0c0c94a341c921e'
This commit is contained in:
meeh committed 2019-05-02 22:41:50 +00:00
commit 7aa68c0a2b
4 files changed
+24 -1

No files matched your search

+1
View File
@@ -1,4 +1,5 @@
2019-05-02 zzz
* Android: Catch ISE from PRNG at shutdown (ticket #2077)
* GeoIP Maxmind 2019-04-29
* NTCP: Rare EventPumper 100% CPU fix (ticket #2476)
* UPnP: Remove finalize() in HTTPSocket (ticket #2490)
@@ -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 = 11;
public final static long BUILD = 12;
/** for example "-test" */
public final static String EXTRA = "-rc";
@@ -487,6 +487,17 @@ public class DHSessionKeyBuilder {
}
public void run() {
try {
run2();
} catch (IllegalStateException ise) {
if (_isRunning)
throw ise;
// else ignore, thread can be slow to shutdown on Android,
// PRNG gets stopped first and throws ISE
}
}
private void run2() {
_isRunning = true;
while (_isRunning) {
//long start = System.currentTimeMillis();
@@ -77,6 +77,17 @@ public class X25519KeyFactory extends I2PThread {
}
public void run() {
try {
run2();
} catch (IllegalStateException ise) {
if (_isRunning)
throw ise;
// else ignore, thread can be slow to shutdown on Android,
// PRNG gets stopped first and throws ISE
}
}
private void run2() {
_isRunning = true;
while (_isRunning) {
int startSize = getSize();