Fixed worker memory dump crash

$GLOBALS does not exist at all on threads :(
This commit is contained in:
Dylan K. Taylor 2018-01-23 17:21:24 +00:00
parent 2a8be527d7
commit 6ddbdc9dc1

View File

@ -330,7 +330,7 @@ class MemoryManager{
file_put_contents($outputFolder . "/staticProperties.js", json_encode($staticProperties, JSON_UNESCAPED_SLASHES | JSON_PRETTY_PRINT));
MainLogger::getLogger()->info("[Dump] Wrote $staticCount static properties");
if($GLOBALS !== null){ //This might be null if we're on a different thread
if(isset($GLOBALS)){ //This might be null if we're on a different thread
$globalVariables = [];
$globalCount = 0;