diff --git a/lib/datadog/core/remote/component.rb b/lib/datadog/core/remote/component.rb index aff4a4691d3..104bb45c6b1 100644 --- a/lib/datadog/core/remote/component.rb +++ b/lib/datadog/core/remote/component.rb @@ -151,7 +151,7 @@ def wait_once(timeout = nil) ].compact.min _timeout = deadline ? deadline - now : nil - return :expired if _timeout && _timeout <= 0 + return :expired if !_timeout.nil? && _timeout <= 0 # - starting with Ruby 3.2, ConditionVariable#wait returns nil on # timeout and an integer otherwise