mirror of
https://github.com/discourse/discourse.git
synced 2025-09-07 12:02:53 +08:00
FIX: Ensure we have proper timeout for MiniRacer.
This commit is contained in:
parent
2ec53a9628
commit
e82d45b009
1 changed files with 4 additions and 4 deletions
|
@ -229,10 +229,10 @@ module JsLocaleHelper
|
||||||
def self.with_context
|
def self.with_context
|
||||||
@mutex.synchronize do
|
@mutex.synchronize do
|
||||||
yield @ctx ||= begin
|
yield @ctx ||= begin
|
||||||
ctx = MiniRacer::Context.new
|
ctx = MiniRacer::Context.new(timeout: 15000)
|
||||||
ctx.load("#{Rails.root}/lib/javascripts/messageformat.js")
|
ctx.load("#{Rails.root}/lib/javascripts/messageformat.js")
|
||||||
ctx
|
ctx
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue