SimpleTimer2: Additional fix for uncaught IllegalStateException

affecting streaming timers (ticket #1672)
Minor streaming cleanup
This commit is contained in:
zzz
2015-10-08 13:42:31 +00:00
parent 03f9df4ff0
commit 419d6a8e18
4 changed files with 34 additions and 9 deletions

View File

@@ -1311,7 +1311,9 @@ class Connection {
}
public long getNextSendTime() { return _nextSend; }
public void timeReached() { retransmit(); }
/**
* Retransmit the packet if we need to.
*
@@ -1323,7 +1325,7 @@ class Connection {
*
* @return true if the packet was sent, false if it was not
*/
public boolean retransmit() {
private boolean retransmit() {
if (_packet.getAckTime() > 0)
return false;