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
1 changed files with 1 additions and 1 deletions

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