Extract MainLoggerThread unit from MainLogger

MainLogger is no longer a Thread, as per the recent changes to pocketmine/log-pthreads.
This commit is contained in:
Dylan K. Taylor
2021-02-04 16:28:49 +00:00
parent 4b9639f6c9
commit ae75d73f48
13 changed files with 140 additions and 79 deletions

View File

@ -50,8 +50,7 @@ class AsyncPoolTest extends TestCase{
public function tearDown() : void{
$this->pool->shutdown();
$this->mainLogger->shutdown();
$this->mainLogger->join();
$this->mainLogger->shutdownLogWriterThread();
}
public function testTaskLeak() : void{