diff options
| author | Samantaz Fox <coding@samantaz.fr> | 2024-08-24 20:44:52 +0200 |
|---|---|---|
| committer | Samantaz Fox <coding@samantaz.fr> | 2024-08-24 20:44:52 +0200 |
| commit | 15669acccf3eb1172ed55a49bd1f9ff00b94f39e (patch) | |
| tree | 83d90cf6b3127a677b80d7ab1f6bf4157701f44a | |
| parent | cd2daf4adb1cbefcfe1e9a451a66617121afc42a (diff) | |
| parent | 466bfbb30637b625ceda1e1073dbc190e51c8dc9 (diff) | |
| download | invidious-15669acccf3eb1172ed55a49bd1f9ff00b94f39e.tar.gz invidious-15669acccf3eb1172ed55a49bd1f9ff00b94f39e.tar.bz2 invidious-15669acccf3eb1172ed55a49bd1f9ff00b94f39e.zip | |
SigHelper: Fix inverted time comparison in 'check_update' (#4845)
Closes issue 4840
| -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. |
