commit | 8dc1f5eef9f14c1a0e6ab73292204b9125febc5b | [log] [tgz] |
---|---|---|
author | Zsolt Haraszti <zharaszt@ciena.com> | Sun Sep 18 23:35:39 2016 -0700 |
committer | Zsolt Haraszti <zharaszt@ciena.com> | Sun Sep 18 23:35:39 2016 -0700 |
tree | 9501d91e2e25ba8a0f097b6da50e3a217705415c | |
parent | a341031f0f1fc4a66cc1b5c4c23bb65ffcf8725d [diff] |
Check if timer was called already
diff --git a/voltha/leader.py b/voltha/leader.py index e1c677a..a1d970d 100644 --- a/voltha/leader.py +++ b/voltha/leader.py
@@ -142,7 +142,8 @@ if self.reassignment_soak_timer is not None: assert isinstance(self.reassignment_soak_timer, DelayedCall) - self.reassignment_soak_timer.cancel() + if not self.reassignment_soak_timer.called: + self.reassignment_soak_timer.cancel() self.reassignment_soak_timer = reactor.callLater( self.soak_time, self._reassign_work)