diff --git a/src/invidious.cr b/src/invidious.cr index 256b6d120..6688e4a0d 100644 --- a/src/invidious.cr +++ b/src/invidious.cr @@ -132,6 +132,8 @@ decrypt_function = [] of {name: String, value: Int32} spawn do update_decrypt_function do |function| decrypt_function = function + sleep 1.minutes + Fiber.yield end end diff --git a/src/invidious/jobs.cr b/src/invidious/jobs.cr index 8a90a031d..df02c7fb4 100644 --- a/src/invidious/jobs.cr +++ b/src/invidious/jobs.cr @@ -204,7 +204,6 @@ def update_decrypt_function end yield decrypt_function - Fiber.yield end end