diff options
-rw-r--r-- | rpkid/rpki/async.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rpkid/rpki/async.py b/rpkid/rpki/async.py index ab1942c1..8a40c404 100644 --- a/rpkid/rpki/async.py +++ b/rpkid/rpki/async.py @@ -81,8 +81,8 @@ class timer(object): else: self.when = when assert isinstance(self.when, rpki.sundial.datetime) - self.cancel() - self.queue.append(self) + if self not in self.queue: + self.queue.append(self) self.queue.sort() def __cmp__(self, other): |