mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-04 08:56:15 +00:00
Allow registering multiple ClassLoaders for a thread
This commit is contained in:
@ -147,7 +147,7 @@ class AsyncPool{
|
||||
$this->eventLoop->addNotifier($notifier, function() use ($worker) : void{
|
||||
$this->collectTasksFromWorker($worker);
|
||||
});
|
||||
$this->workers[$worker]->setClassLoader($this->classLoader);
|
||||
$this->workers[$worker]->setClassLoaders([$this->classLoader]);
|
||||
$this->workers[$worker]->start(self::WORKER_START_OPTIONS);
|
||||
|
||||
$this->taskQueues[$worker] = new \SplQueue();
|
||||
|
Reference in New Issue
Block a user