[downloader] Fix error (#8016)

* downloader: Fix error

* Update downloader.rb
This commit is contained in:
supechicken
2023-03-01 04:20:00 +08:00
committed by GitHub
parent 8a033e95cd
commit a55d312076

View File

@@ -135,11 +135,11 @@ def http_downloader(uri, filename = File.basename(url), verbose = false)
io.write(chunk) # write to file
end
ensure
# stop progress bar, wait for it to terminate
progress_bar.progress_bar_showing = false
progress_bar_thread.join
end
ensure
# stop progress bar, wait for it to terminate
progress_bar.progress_bar_showing = false
progress_bar_thread.join
end
end
rescue OpenSSL::SSL::SSLError