Use \pocketmine\Thread::getThreadName() instead (#6)

This commit is contained in:
iPocket 2016-10-01 18:03:24 +02:00 committed by Dylan K. Taylor
parent a7366324e5
commit 9a379734ba

View File

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