2007-01-15 jrandom

* small guard against unnecessary streaming lib reset packets
      (thanks Complication!)
This commit is contained in:
jrandom
2007-01-15 06:35:59 +00:00
committed by zzz
parent 9c42830076
commit f4749f2483
3 changed files with 8 additions and 3 deletions

View File

@ -247,6 +247,7 @@ public class Connection {
}
long now = _context.clock().now();
if (_resetSentOn + 10*1000 > now) return; // don't send resets too fast
if (_resetReceived) return;
_resetSent = true;
if (_resetSentOn <= 0)
_resetSentOn = now;