Skip to content

Commit

Permalink
Convert the duration to a float
Browse files Browse the repository at this point in the history
Thread#join used to accept duration objects but not since ruby 3/rails 6.1

See also ManageIQ/manageiq-providers-vmware#832
  • Loading branch information
jrafanie committed Jun 26, 2023
1 parent 8566157 commit 4ddd1ee
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def stop!(join_limit = 10.seconds)

finish.make_true
watch&.finish rescue nil
thread&.join(join_limit)
thread&.join(join_limit.to_f)
end

protected
Expand Down

0 comments on commit 4ddd1ee

Please sign in to comment.