mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-01-24 08:14:14 +03:00
Use .appendleft(x) for deque instead .insert(0, x) (fix #268)
This commit is contained in:
parent
c667a00281
commit
1518be0b95
|
@ -57,7 +57,7 @@ class UpdateState:
|
||||||
with self._updates_lock:
|
with self._updates_lock:
|
||||||
# Insert at the beginning so the very next poll causes an error
|
# Insert at the beginning so the very next poll causes an error
|
||||||
# TODO Should this reset the pts and such?
|
# TODO Should this reset the pts and such?
|
||||||
self._updates.insert(0, error)
|
self._updates.appendleft(error)
|
||||||
self._updates_available.set()
|
self._updates_available.set()
|
||||||
|
|
||||||
def check_error(self):
|
def check_error(self):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user