From 9823d761d9b73b7caa00d58967f22a8b958063f0 Mon Sep 17 00:00:00 2001 From: zzz Date: Mon, 23 Jul 2012 23:21:20 +0000 Subject: [PATCH] dont create router.ping file on Android to reduce flash wear --- history.txt | 1 + router/java/src/net/i2p/router/Router.java | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/history.txt b/history.txt index baa968febd..63cc8abfbe 100644 --- a/history.txt +++ b/history.txt @@ -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 diff --git a/router/java/src/net/i2p/router/Router.java b/router/java/src/net/i2p/router/Router.java index d97c5737b1..399d9fb482 100644 --- a/router/java/src/net/i2p/router/Router.java +++ b/router/java/src/net/i2p/router/Router.java @@ -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...