Commit 00eccfa1 authored by Denis Bilenko's avatar Denis Bilenko

pool: fix RuntimeError: Set changed size during iteration

parent f2558617
......@@ -93,7 +93,7 @@ class GreenletSet(object):
timer = Timeout.start_new(timeout)
try:
while self.greenlets:
for greenlet in self.greenlets:
for greenlet in list(self.greenlets):
if greenlet not in self.dying:
greenlet.kill(exception)
self.dying.add(greenlet)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment