diff options
| author | Omar Roth <omarroth@hotmail.com> | 2018-12-28 09:55:02 -0600 |
|---|---|---|
| committer | Omar Roth <omarroth@hotmail.com> | 2018-12-28 09:55:02 -0600 |
| commit | 6b4ea53a32d8d2d0be8cf9519309b3502ee58221 (patch) | |
| tree | bafbfe06e6e21326dce570aa95c9f82bfc3c7ca3 | |
| parent | db7457f135524fed6a97b05a6f5b9cd3471e71ca (diff) | |
| download | invidious-6b4ea53a32d8d2d0be8cf9519309b3502ee58221.tar.gz invidious-6b4ea53a32d8d2d0be8cf9519309b3502ee58221.tar.bz2 invidious-6b4ea53a32d8d2d0be8cf9519309b3502ee58221.zip | |
Add sleep time for update_decrypt_function
| -rw-r--r-- | src/invidious.cr | 2 | ||||
| -rw-r--r-- | src/invidious/jobs.cr | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/invidious.cr b/src/invidious.cr index 256b6d12..6688e4a0 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 8a90a031..df02c7fb 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 |
