mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
FIX: properly reset all contexts after forking
Fixes hang on backup
This commit is contained in:
parent
dec4a3386f
commit
7e43e73df6
4 changed files with 39 additions and 0 deletions
|
@ -328,6 +328,9 @@ module Discourse
|
|||
|
||||
# in case v8 was initialized we want to make sure it is nil
|
||||
PrettyText.reset_context
|
||||
|
||||
Tilt::ES6ModuleTranspiler.reset_context if defined? Tilt::ES6ModuleTranspiler
|
||||
JsLocaleHelper.reset_context if defined? JsLocaleHelper
|
||||
nil
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue