Skip to content

Commit 018d842

Browse files
committed
Fix lock file validation logic
1 parent a5b24e7 commit 018d842

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/remote_input/downloader.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def download(output_path, &block)
122122
# The process that acquired the lock will be exited before
123123
# it stores its process ID.
124124
elapsed_time = Time.now - lock_path.mtime
125-
valid_lock_path = (elapsed_time > 10)
125+
valid_lock_path = (elapsed_time < 10)
126126
else
127127
begin
128128
Process.getpgid(pid)

0 commit comments

Comments
 (0)