Skip to content

Commit

Permalink
use attr_reader instead of variable
Browse files Browse the repository at this point in the history
to be consistent with other variable access
  • Loading branch information
jjb authored May 15, 2024
1 parent 752c0e0 commit ce7ba57
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 ce7ba57

Please sign in to comment.