dont create router.ping file on Android to reduce flash wear

This commit is contained in:
zzz
2012-07-23 23:21:20 +00:00
parent c1181f855a
commit 9823d761d9
2 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,6 @@
2012-07-24 zzz
* LookaheadInputStream: Fix bug causing gunzip fails, esp. on Android
* Router: Don't create router.ping file on Android
* SSLEepGet: Fix on Android (ticket #668)
2012-07-21 zzz

View File

@ -255,7 +255,8 @@ public class Router implements RouterClock.ClockShiftListener {
// ********* Start no threads before here ********* //
//
// NOW we can start the ping file thread.
beginMarkingLiveliness();
if (!System.getProperty("java.vendor").contains("Android"))
beginMarkingLiveliness();
// Apps may use this as an easy way to determine if they are in the router JVM
// But context.isRouterContext() is even easier...