2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-05 08:59:27 +08:00

FIX: properly reset all contexts after forking

Fixes hang on backup
This commit is contained in:
Sam 2016-11-02 13:34:20 +11:00
parent dec4a3386f
commit 7e43e73df6
4 changed files with 39 additions and 0 deletions

View file

@ -33,6 +33,10 @@ JS
ctx
end
def self.reset_context
@ctx = nil
end
def self.v8
return @ctx if @ctx