Skip to content

Commit

Permalink
Merge 7ab5067 into cce05a3
Browse files Browse the repository at this point in the history
  • Loading branch information
ikapelyukhin committed Sep 26, 2018
2 parents cce05a3 + 7ab5067 commit 73ef032
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/rmt/fiber_request.rb
Expand Up @@ -17,6 +17,7 @@ def initialize(base_url, download_path:, request_fiber:, remote_file:, **options
@download_path.write(chunk)
end
on_complete do |response|
@request_fiber.resume(response) unless (response.return_code == :ok)
@request_fiber.resume(response) if @request_fiber.alive?
end
end
Expand Down

0 comments on commit 73ef032

Please sign in to comment.