mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-13 05:15:13 +00:00
Use \pocketmine\Thread::getThreadName() instead (#6)
This commit is contained in:
parent
a7366324e5
commit
9a379734ba
@ -466,7 +466,7 @@ namespace pocketmine {
|
|||||||
$logger->info("Stopping other threads");
|
$logger->info("Stopping other threads");
|
||||||
|
|
||||||
foreach(ThreadManager::getInstance()->getAll() as $id => $thread){
|
foreach(ThreadManager::getInstance()->getAll() as $id => $thread){
|
||||||
$logger->debug("Stopping " . (new \ReflectionClass($thread))->getShortName() . " thread");
|
$logger->debug("Stopping " . $thread->getThreadName() . " thread");
|
||||||
$thread->quit();
|
$thread->quit();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user