summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorsyeopite <syeopite@syeopite.dev>2024-07-25 20:12:17 -0700
committersyeopite <syeopite@syeopite.dev>2024-08-21 02:43:08 -0700
commit22b35c453ede48e36db1657c5b8e879f3cc70a56 (patch)
tree84a2ec499165a0abdff20d98dfb1814b2b8d4108 /src
parente319c35f097e08590e705378c7e5b479720deabc (diff)
downloadinvidious-22b35c453ede48e36db1657c5b8e879f3cc70a56.tar.gz
invidious-22b35c453ede48e36db1657c5b8e879f3cc70a56.tar.bz2
invidious-22b35c453ede48e36db1657c5b8e879f3cc70a56.zip
Ameba: Fix Style/WhileTrue
Diffstat (limited to 'src')
-rw-r--r--src/invidious/routes/video_playback.cr2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/invidious/routes/video_playback.cr b/src/invidious/routes/video_playback.cr
index ec18f3b8..24693662 100644
--- a/src/invidious/routes/video_playback.cr
+++ b/src/invidious/routes/video_playback.cr
@@ -131,7 +131,7 @@ module Invidious::Routes::VideoPlayback
end
# TODO: Record bytes written so we can restart after a chunk fails
- while true
+ loop do
if !range_end && content_length
range_end = content_length
end