forked from I2P_Developers/i2p.i2p
Router: Log crashed event if old router.ping file is found at startup
This commit is contained in:
@@ -1928,6 +1928,8 @@ public class Router implements RouterClock.ClockShiftListener {
|
||||
}
|
||||
if (downtime > LIVELINESS_DELAY) {
|
||||
System.err.println("WARN: Old router was not shut down gracefully, deleting " + f);
|
||||
if (lastWritten > 0)
|
||||
_eventLog.addEvent(EventLog.CRASHED, (downtime / 60000) + " minutes ago");
|
||||
f.delete();
|
||||
} else {
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user