Fix threadsafety issue, append @app to @ins at initialization rather than at #call.
This commit is contained in:
parent
c62e4f8318
commit
6af3ec5951
|
@ -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 New Issue