mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: properly reset all contexts after forking
Fixes hang on backup
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user