Fix infinite recursion

This commit is contained in:
Lonami Exo 2018-07-20 00:01:01 +02:00
parent 8a287a38ec
commit c3692fd124

View File

@ -772,7 +772,10 @@ class _ContainerQueue(queue.Queue):
#
# 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.
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):
items = [items]