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:
parent
c62e4f8318
commit
6af3ec5951
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue