Skip to content

Commit

Permalink
downloader: compare compatible type (#233)
Browse files Browse the repository at this point in the history
GitHub: fix GH-232
  • Loading branch information
tikkss authored Dec 2, 2024
1 parent cab280b commit 32f8dd6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/datasets/downloader.rb
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,8 @@ def download(output_path, &block)
rescue ArgumentError
# The process that acquired the lock will be exited before
# it stores its process ID.
valid_lock_path = (lock_path.mtime > 10)
elapsed_time = Time.now - lock_path.mtime
valid_lock_path = (elapsed_time > 10)
else
begin
Process.getpgid(pid)
Expand Down

0 comments on commit 32f8dd6

Please sign in to comment.