downloader: Fix endless download (#7933)

This commit is contained in:
supechicken
2023-02-14 04:51:27 +08:00
committed by GitHub
parent 4488142cf2
commit 2f24f701cc

View File

@@ -77,9 +77,9 @@ class ProgressBar
end
def show
return Thread.new do
@progress_bar_showing = true
@progress_bar_showing = true
return Thread.new do
print "\e[?25l" # hide cursor to prevent cursor flickering
while @progress_bar_showing