Skip to content

Commit a147a00

Browse files
committed
use SHUTDOWN_TIMEOUT
1 parent c5c6b19 commit a147a00

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/datadog/core/workers/async.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def terminate
4949
worker.terminate
5050
# Wait for the worker thread to end
5151
begin
52-
Timeout.timeout(0.5) do
52+
Timeout.timeout(SHUTDOWN_TIMEOUT) do
5353
worker.join
5454
end
5555
rescue Timeout::Error

0 commit comments

Comments
 (0)