We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 20e0990 commit 78255d4Copy full SHA for 78255d4
src/Downloads.jl
@@ -303,13 +303,12 @@ function request(
303
throw :: Bool = true,
304
downloader :: Union{Downloader, Nothing} = nothing,
305
) :: Union{Response, RequestError}
306
- lock(DOWNLOAD_LOCK) do
307
- yield() # let other downloads finish
308
- downloader isa Downloader && return
309
- while true
+ if downloader === nothing
+ lock(DOWNLOAD_LOCK) do
310
downloader = DOWNLOADER[]
311
312
- DOWNLOADER[] = Downloader()
+ downloader = DOWNLOADER[] = Downloader()
+ end
313
end
314
315
local response
0 commit comments