Skip to content

Commit

Permalink
Don't special case IsolatedExecutionState.clear
Browse files Browse the repository at this point in the history
  • Loading branch information
spiderbites committed Jan 7, 2025
1 parent 56fff14 commit ecf7ebf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion actionpack/lib/action_controller/metal/live.rb
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,7 @@ def process(name)
error = e
end
ensure
ActiveSupport::IsolatedExecutionState.clear
clean_up_thread_locals(locals, t2)

@_response.commit!
Expand Down Expand Up @@ -377,7 +378,6 @@ def new_controller_thread # :nodoc:

# Ensure we clean up any thread locals we copied so that the thread can reused.
def clean_up_thread_locals(locals, thread) # :nodoc:
ActiveSupport::IsolatedExecutionState.clear
locals.each { |k, _| thread[k] = nil }
end

Expand Down

0 comments on commit ecf7ebf

Please sign in to comment.