From 9a379734ba0b5b18c873e35702a0dc0b510c0c88 Mon Sep 17 00:00:00 2001 From: iPocket Date: Sat, 1 Oct 2016 18:03:24 +0200 Subject: [PATCH] Use \pocketmine\Thread::getThreadName() instead (#6) --- src/pocketmine/PocketMine.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pocketmine/PocketMine.php b/src/pocketmine/PocketMine.php index ad864cbc2..02211eaed 100644 --- a/src/pocketmine/PocketMine.php +++ b/src/pocketmine/PocketMine.php @@ -466,7 +466,7 @@ namespace pocketmine { $logger->info("Stopping other threads"); foreach(ThreadManager::getInstance()->getAll() as $id => $thread){ - $logger->debug("Stopping " . (new \ReflectionClass($thread))->getShortName() . " thread"); + $logger->debug("Stopping " . $thread->getThreadName() . " thread"); $thread->quit(); }