mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-10 19:46:36 +03:00
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:
parent
dd55e7c748
commit
396594060b
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue
Block a user