summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorOmar Roth <omarroth@hotmail.com>2018-04-28 09:26:03 -0500
committerOmar Roth <omarroth@hotmail.com>2018-04-28 09:32:35 -0500
commitd753e52680372f78c287632e7d3b24c9e74be6f6 (patch)
tree6007d55ab301a18578103888ca2f3420b165a4b8 /src
parent92f78ff54135fd3f0723b7c434aab731cd41c1f7 (diff)
downloadinvidious-d753e52680372f78c287632e7d3b24c9e74be6f6.tar.gz
invidious-d753e52680372f78c287632e7d3b24c9e74be6f6.tar.bz2
invidious-d753e52680372f78c287632e7d3b24c9e74be6f6.zip
Add Fiber.yield to jobs
Diffstat (limited to 'src')
-rw-r--r--src/invidious.cr3
1 files changed, 3 insertions, 0 deletions
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