diff options
| author | Samantaz Fox <coding@samantaz.fr> | 2024-08-14 21:43:37 +0200 |
|---|---|---|
| committer | Samantaz Fox <coding@samantaz.fr> | 2024-08-14 21:43:37 +0200 |
| commit | 466bfbb30637b625ceda1e1073dbc190e51c8dc9 (patch) | |
| tree | b48e7060c337d689be35d8a383de2ec6f18b1086 | |
| parent | e319c35f097e08590e705378c7e5b479720deabc (diff) | |
| download | invidious-466bfbb30637b625ceda1e1073dbc190e51c8dc9.tar.gz invidious-466bfbb30637b625ceda1e1073dbc190e51c8dc9.tar.bz2 invidious-466bfbb30637b625ceda1e1073dbc190e51c8dc9.zip | |
SigHelper: Fix inverted time comparison in 'check_update'
| -rw-r--r-- | src/invidious/helpers/signatures.cr | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/invidious/helpers/signatures.cr b/src/invidious/helpers/signatures.cr index 84a8a86d..82a28fc0 100644 --- a/src/invidious/helpers/signatures.cr +++ b/src/invidious/helpers/signatures.cr @@ -10,10 +10,8 @@ class Invidious::DecryptFunction end def check_update - now = Time.utc - # If we have updated in the last 5 minutes, do nothing - return if (now - @last_update) > 5.minutes + return if (Time.utc - @last_update) < 5.minutes # Get the amount of time elapsed since when the player was updated, in the # event where multiple invidious processes are run in parallel. |
