mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-03 11:40:11 +03:00
Fix infinite recursion
This commit is contained in:
parent
8a287a38ec
commit
c3692fd124
|
@ -772,7 +772,10 @@ class _ContainerQueue(queue.Queue):
|
||||||
#
|
#
|
||||||
# To work around that issue, always convert the result to
|
# To work around that issue, always convert the result to
|
||||||
# a list, so if it's a list, we don't need to do anything.
|
# a list, so if it's a list, we don't need to do anything.
|
||||||
items = self.get_nowait()
|
#
|
||||||
|
# Changed to .get(block=False) which is what
|
||||||
|
# .get_nowait() does to avoid infinite recursion.
|
||||||
|
items = super().get(block=False)
|
||||||
if not isinstance(items, list):
|
if not isinstance(items, list):
|
||||||
items = [items]
|
items = [items]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user