1
0
Fork 0
mirror of https://github.com/omniauth/omniauth.git synced 2022-11-09 12:31:49 -05:00

Fix threadsafety issue, append @app to @ins at initialization rather than at #call.

This commit is contained in:
Robert Rasmussen 2012-05-29 12:59:10 -05:00
parent c62e4f8318
commit 6af3ec5951

View file

@ -8,6 +8,7 @@ module OmniAuth
else
@app = app
super(&block)
@ins << @app
end
end
@ -44,7 +45,6 @@ module OmniAuth
end
def call(env)
@ins << @app unless rack14? || @ins.include?(@app)
to_app.call(env)
end
end