Skip to content
Browse files

Fix threadsafety issue, append @app to @ins at initialization rather …

…than at #call.
  • Loading branch information...
1 parent c62e4f8 commit 6af3ec5951a2067485a75afd5676c1f732edfdf0 Robert Rasmussen committed May 29, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/omniauth/builder.rb
View
2 lib/omniauth/builder.rb
@@ -8,6 +8,7 @@ def initialize(app, &block)
else
@app = app
super(&block)
+ @ins << @app
end
end
@@ -44,7 +45,6 @@ def provider(klass, *args, &block)
end
def call(env)
- @ins << @app unless rack14? || @ins.include?(@app)
to_app.call(env)
end
end

0 comments on commit 6af3ec5

Please sign in to comment.
Something went wrong with that request. Please try again.