Skip to content
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions src/Downloads.jl
Original file line number Diff line number Diff line change
Expand Up @@ -303,13 +303,13 @@ function request(
throw :: Bool = true,
downloader :: Union{Downloader, Nothing} = nothing,
) :: Union{Response, RequestError}
lock(DOWNLOAD_LOCK) do
yield() # let other downloads finish
downloader isa Downloader && return
while true
if downloader === nothing
Comment thread
StefanKarpinski marked this conversation as resolved.
lock(DOWNLOAD_LOCK) do
yield() # let other downloads finish
Comment thread
StefanKarpinski marked this conversation as resolved.
Outdated
downloader = DOWNLOADER[]
downloader isa Downloader && return
DOWNLOADER[] = Downloader()
if downloader === nothing
downloader = DOWNLOADER[] = Downloader()
end
end
end
local response
Expand Down