Skip to content

Commit

Permalink
Merge pull request #497 from jrafanie/fix_join_with_duration
Browse files Browse the repository at this point in the history
Convert the duration to a float
  • Loading branch information
agrare committed Jun 26, 2023
2 parents 8566157 + 4ddd1ee commit 1371d53
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 1371d53

Please sign in to comment.