Skip to content

Commit

Permalink
fixup: use attr_reader instead of variable access (#214)
Browse files Browse the repository at this point in the history
  • Loading branch information
jjb authored May 16, 2024
1 parent 752c0e0 commit d530028
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rack/timeout/core.rb
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ def call(env)
Thread.main['RACK_TIMEOUT_COUNT'] ||= 0
Thread.main['RACK_TIMEOUT_COUNT'] += 1

if Thread.main['RACK_TIMEOUT_COUNT'] >= @term_on_timeout
if Thread.main['RACK_TIMEOUT_COUNT'] >= term_on_timeout
message << ", sending SIGTERM to process #{Process.pid}"
Process.kill("SIGTERM", Process.pid)
else
Expand Down

0 comments on commit d530028

Please sign in to comment.