Skip to content
Browse files

Merge pull request #609 from spiceworks/threadsafety_fix

Fix threadsafety issue for multithreaded apps
  • Loading branch information...
2 parents c62e4f8 + 6af3ec5 commit c2ceb5f3546c96bbdfb0c62e7b61d003192271da @sferik sferik committed Jun 1, 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 c2ceb5f

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