I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit e69fefda authored by zab2's avatar zab2
Browse files

cleanup: remove boolean parameter that is always true

parent 513da3b7
No related branches found
No related tags found
No related merge requests found
...@@ -1254,7 +1254,7 @@ class Connection { ...@@ -1254,7 +1254,7 @@ class Connection {
} }
public long getNextSendTime() { return _nextSendTime; } public long getNextSendTime() { return _nextSendTime; }
public void timeReached() { retransmit(true); } public void timeReached() { retransmit(); }
/** /**
* Retransmit the packet if we need to. * Retransmit the packet if we need to.
* *
...@@ -1264,11 +1264,9 @@ class Connection { ...@@ -1264,11 +1264,9 @@ class Connection {
* *
* don't synchronize this, deadlock with ackPackets->ackReceived->SimpleTimer2.cancel * don't synchronize this, deadlock with ackPackets->ackReceived->SimpleTimer2.cancel
* *
* @param penalize true if this retransmission is caused by a timeout, false if we
* are just sending this packet instead of an ACK
* @return true if the packet was sent, false if it was not * @return true if the packet was sent, false if it was not
*/ */
public boolean retransmit(boolean penalize) { public boolean retransmit() {
if (_packet.getAckTime() > 0) if (_packet.getAckTime() > 0)
return false; return false;
...@@ -1332,7 +1330,7 @@ class Connection { ...@@ -1332,7 +1330,7 @@ class Connection {
int newWindowSize = getOptions().getWindowSize(); int newWindowSize = getOptions().getWindowSize();
if (penalize && _ackSinceCongestion) { if (_ackSinceCongestion) {
// only shrink the window once per window // only shrink the window once per window
if (_packet.getSequenceNum() > _lastCongestionHighestUnacked) { if (_packet.getSequenceNum() > _lastCongestionHighestUnacked) {
congestionOccurred(); congestionOccurred();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment