Console: Don't display I2CP error during soft restart (ticket #2468)

This commit is contained in:
zzz
2019-04-15 12:49:07 +00:00
parent d32d5b5f29
commit e42e04c0f0
2 changed files with 14 additions and 2 deletions

View File

@ -832,6 +832,16 @@ public class Router implements RouterClock.ClockShiftListener {
}
}
/**
* @return true if router is RESTARTING (soft restart)
* @since 0.9.40
*/
public boolean isRestarting() {
synchronized(_stateLock) {
return _state == State.RESTARTING;
}
}
/**
* Only for Restarter, after soft restart is complete.
* Not for external use.