forked from I2P_Developers/i2p.i2p
i2ptunnel: Remove delay before flushing output
This commit is contained in:
@ -657,18 +657,7 @@ public class I2PTunnelRunner extends I2PAppThread implements I2PSocket.SocketErr
|
|||||||
//if (_log.shouldLog(Log.DEBUG))
|
//if (_log.shouldLog(Log.DEBUG))
|
||||||
// _log.debug(direction + ": " + len + " bytes flushed through " + (_toI2P ? "to " : "from ")
|
// _log.debug(direction + ": " + len + " bytes flushed through " + (_toI2P ? "to " : "from ")
|
||||||
// + to);
|
// + to);
|
||||||
if (_toI2P) {
|
|
||||||
try {
|
|
||||||
Thread.sleep(5);
|
|
||||||
} catch (InterruptedException e) {
|
|
||||||
e.printStackTrace();
|
|
||||||
}
|
|
||||||
|
|
||||||
if (in.available() <= 0)
|
|
||||||
out.flush();
|
out.flush();
|
||||||
} else {
|
|
||||||
out.flush();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//if (_log.shouldDebug())
|
//if (_log.shouldDebug())
|
||||||
|
Reference in New Issue
Block a user