This commit is contained in:
Peter Šurda 2018-02-01 22:33:28 +01:00
parent 451174b566
commit dcce7ed4c5
Signed by: PeterSurda
GPG Key ID: 0C5F50C0B5F37D87

View File

@ -72,7 +72,7 @@ class RandomTrackingDict(object):
def randomKeys(self, count=1): def randomKeys(self, count=1):
if self.len == 0 or (self.pendingLen >= self.maxPending and if self.len == 0 or (self.pendingLen >= self.maxPending and
self.lastPoll + self.pendingTimeout > time(): self.lastPoll + self.pendingTimeout > time()):
raise KeyError raise KeyError
# reset if we've requested all # reset if we've requested all
with self.lock: with self.lock: