forked from I2P_Developers/i2p.i2p
minor updates after review
This commit is contained in:
@ -25,7 +25,7 @@ class GunzipOutputStream extends InflaterOutputStream {
|
||||
private final CRC32 _crc32;
|
||||
private final byte _buf1[] = new byte[1];
|
||||
private boolean _complete;
|
||||
private byte _footer[] = new byte[FOOTER_SIZE];
|
||||
private final byte _footer[] = new byte[FOOTER_SIZE];
|
||||
private long _bytesReceived;
|
||||
private long _bytesReceivedAtCompletion;
|
||||
|
||||
|
@ -1050,7 +1050,7 @@ public class ConsoleUpdateManager implements UpdateManager, RouterApp {
|
||||
uri = DataHelper.stripHTML(task.getURI().getPath());
|
||||
buf.append(_("Install failed from {0}", uri));
|
||||
} else {
|
||||
buf.append(_("Transfer failed from {0}"));
|
||||
buf.append(_("Transfer failed from {0}", uri));
|
||||
}
|
||||
if (reason != null && reason.length() > 0) {
|
||||
buf.append("<br>");
|
||||
|
@ -136,7 +136,7 @@ class NewsFetcher extends UpdateRunner {
|
||||
/**
|
||||
* Add a query param for the local language to get translated news.
|
||||
* Unchanged if disabled by property, if language is english,
|
||||
* or if URI already contains a language paramter
|
||||
* or if URI already contains a language parameter
|
||||
*
|
||||
* @since 0.9.21
|
||||
*/
|
||||
|
@ -96,7 +96,7 @@ public abstract class I2PSessionImpl implements I2PSession, I2CPMessageReader.I2
|
||||
// established subsessions
|
||||
private final ConcurrentHashMap<SessionId, SubSession> _subsessionMap;
|
||||
private final Object _subsessionLock = new Object();
|
||||
private static final String MIN_SUBSESSION_VERSION = "0.9.19";
|
||||
private static final String MIN_SUBSESSION_VERSION = "0.9.21";
|
||||
private volatile boolean _routerSupportsSubsessions;
|
||||
|
||||
/** hostname of router - will be null if in RouterContext */
|
||||
|
@ -178,6 +178,7 @@ public interface UpdateManager {
|
||||
* @since 0.9.21
|
||||
*/
|
||||
public boolean isUpdateInProgress(UpdateType type, String id);
|
||||
|
||||
/**
|
||||
* Non-blocking. Does not check.
|
||||
* Fails if check or update already in progress.
|
||||
@ -225,6 +226,7 @@ public interface UpdateManager {
|
||||
/**
|
||||
* The status on any update current or last finished.
|
||||
* @return status or ""
|
||||
* @since 0.9.21
|
||||
*/
|
||||
public String getStatus();
|
||||
|
||||
|
Reference in New Issue
Block a user