forked from I2P_Developers/i2p.i2p
partial revert of 6df9f4e154d148867ee158cbe9e9acf3fb73d680
This commit is contained in:
@ -116,7 +116,7 @@ class ConnectionDataReceiver implements MessageOutputStream.DataReceiver {
|
||||
* @param buf data to be sent - may be null
|
||||
* @param off offset into the buffer to start writing from
|
||||
* @param size how many bytes of the buffer to write (may be 0)
|
||||
* @return the packet sent, or null if the connection died
|
||||
* @return the packet sent
|
||||
*/
|
||||
public PacketLocal send(byte buf[], int off, int size) {
|
||||
return send(buf, off, size, false);
|
||||
|
@ -113,7 +113,7 @@ public class Clock implements Timestamper.UpdateListener {
|
||||
/*
|
||||
* @return the current delta from System.currentTimeMillis() in milliseconds
|
||||
*/
|
||||
public synchronized long getOffset() {
|
||||
public long getOffset() {
|
||||
return _offset;
|
||||
}
|
||||
|
||||
|
@ -283,6 +283,7 @@ public class TunnelPoolSettings {
|
||||
}
|
||||
|
||||
private static final boolean getBoolean(String str, boolean defaultValue) {
|
||||
if (str == null) return defaultValue;
|
||||
boolean v = Boolean.parseBoolean(str) ||
|
||||
(str != null && "YES".equals(str.toUpperCase(Locale.US)));
|
||||
return v;
|
||||
|
Reference in New Issue
Block a user