mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-02-18 20:41:05 +03:00
Fix UpdateState.check_error popping the wrong side
This commit is contained in:
parent
6df38da793
commit
ee08232473
|
@ -63,7 +63,7 @@ class UpdateState:
|
||||||
def check_error(self):
|
def check_error(self):
|
||||||
with self._updates_lock:
|
with self._updates_lock:
|
||||||
if self._updates and isinstance(self._updates[0], Exception):
|
if self._updates and isinstance(self._updates[0], Exception):
|
||||||
raise self._updates.pop()
|
raise self._updates.popleft()
|
||||||
|
|
||||||
def process(self, update):
|
def process(self, update):
|
||||||
"""Processes an update object. This method is normally called by
|
"""Processes an update object. This method is normally called by
|
||||||
|
|
Loading…
Reference in New Issue
Block a user