Possible fix for #2046, removed embedded class names

This commit is contained in:
Shoghi Cervantes
2014-09-19 09:44:58 +02:00
parent 8c627bd0af
commit d312d2a143
13 changed files with 35 additions and 28 deletions

View File

@ -56,7 +56,7 @@ class ServerScheduler{
public function __construct(){
$this->queue = new ReversePriorityQueue();
$this->asyncPool = new \Pool(self::$WORKERS, "pocketmine\\scheduler\\AsyncWorker");
$this->asyncPool = new \Pool(self::$WORKERS, AsyncWorker::class);
}
/**
@ -145,6 +145,8 @@ class ServerScheduler{
$this->tasks = [];
$this->asyncPool->shutdown();
$this->asyncTasks = 0;
$this->queue = new ReversePriorityQueue();
$this->asyncPool = new \Pool(self::$WORKERS, AsyncWorker::class);
}
/**