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(); }