diff options
author | Rob Austein <sra@hactrn.net> | 2009-04-30 13:23:18 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2009-04-30 13:23:18 +0000 |
commit | 742d1609bb1ed14aa84c0bfd5c9a43bb6ef393c7 (patch) | |
tree | 540cc79f75dd0f09d66b321d5ed4e0a722a6c6d7 /rpkid/rpki/async.py | |
parent | 74594ec3385acd821f475e730d7116006f256974 (diff) |
Cancel timers before setting them
svn path=/rpkid/rpki/async.py; revision=2382
Diffstat (limited to 'rpkid/rpki/async.py')
-rw-r--r-- | rpkid/rpki/async.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/rpkid/rpki/async.py b/rpkid/rpki/async.py index 68d90aa8..9bd467fd 100644 --- a/rpkid/rpki/async.py +++ b/rpkid/rpki/async.py @@ -81,6 +81,7 @@ class timer(object): else: self.when = when assert isinstance(self.when, rpki.sundial.datetime) + self.cancel() self.queue.append(self) self.queue.sort() |