mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-03-16.git
synced 2024-08-15 00:53:18 +00:00
Add sleep time for update_decrypt_function
This commit is contained in:
parent
db7457f135
commit
6b4ea53a32
2 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -204,7 +204,6 @@ def update_decrypt_function
|
|||
end
|
||||
|
||||
yield decrypt_function
|
||||
Fiber.yield
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue