From be9f5521e108163c0a04034b8df526c2cbc2b749 Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Date: Fri, 19 Jun 2015 18:36:08 +0200 Subject: [PATCH] Fixed undefined index on async worker crash --- src/pocketmine/scheduler/AsyncPool.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pocketmine/scheduler/AsyncPool.php b/src/pocketmine/scheduler/AsyncPool.php index eded14c0d..421692460 100644 --- a/src/pocketmine/scheduler/AsyncPool.php +++ b/src/pocketmine/scheduler/AsyncPool.php @@ -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"]."()"); } }