mirror of
https://github.com/discourse/discourse.git
synced 2025-02-22 09:18:55 +08:00
FIX: Ensure we have proper timeout for MiniRacer.
This commit is contained in:
parent
7c9aa82625
commit
ff7cbf6935
@ -229,10 +229,10 @@ module JsLocaleHelper
|
||||
def self.with_context
|
||||
@mutex.synchronize do
|
||||
yield @ctx ||= begin
|
||||
ctx = MiniRacer::Context.new
|
||||
ctx.load("#{Rails.root}/lib/javascripts/messageformat.js")
|
||||
ctx
|
||||
end
|
||||
ctx = MiniRacer::Context.new(timeout: 15000)
|
||||
ctx.load("#{Rails.root}/lib/javascripts/messageformat.js")
|
||||
ctx
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user