From d753e52680372f78c287632e7d3b24c9e74be6f6 Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Sat, 28 Apr 2018 09:26:03 -0500 Subject: [PATCH] Add Fiber.yield to jobs --- src/invidious.cr | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/invidious.cr b/src/invidious.cr index 125659ff..2b8a8970 100644 --- a/src/invidious.cr +++ b/src/invidious.cr @@ -108,6 +108,8 @@ threads.times do end end end + + Fiber.yield end end end @@ -132,6 +134,7 @@ channel_threads.times do |i| end end end + Fiber.yield end end end