Fixed undefined index on async worker crash

This commit is contained in:
Shoghi Cervantes 2015-06-19 18:36:08 +02:00
parent 6063738e69
commit be9f5521e1
No known key found for this signature in database
GPG Key ID: 78464DB0A7837F89

View File

@ -153,7 +153,7 @@ class AsyncPool{
}elseif($task->isTerminated()){
$info = $task->getTerminationInfo();
$this->removeTask($task, true);
$this->server->getLogger()->critical("Could not execute asynchronous task " . (new \ReflectionClass($task))->getShortName() . ": " . $info["message"]);
$this->server->getLogger()->critical("Could not execute asynchronous task " . (new \ReflectionClass($task))->getShortName() . ": " . (isset($info["message"]) ? $info["message"] : "Unknown"));
$this->server->getLogger()->critical("On ".$info["scope"].", line ".$info["line"] .", ".$info["function"]."()");
}
}