Fix reset_deadline was not doing its job

This was leading to a soft deadlock, always trying to get difference
but always receiving empty one and not exiting.
This commit is contained in:
Lonami Exo 2022-08-11 11:04:37 +02:00
parent dd55e7c748
commit 396594060b

View File

@ -271,6 +271,7 @@ class MessageBox:
def reset_deadline(self, entry, deadline):
if entry not in self.map:
raise RuntimeError('Called reset_deadline on an entry for which we do not have state')
self.map[entry].deadline = deadline
if self.next_deadline == entry:
# If the updated deadline was the closest one, recalculate the new minimum.