mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 09:56:06 +00:00
Removed unused code, fixed undefined variables
This commit is contained in:
@ -247,9 +247,8 @@ class ServerScheduler{
|
||||
$this->asyncPool->collect([$this, "collectAsyncTask"]);
|
||||
|
||||
if($this->asyncTasks > 0){
|
||||
//TODO: remove this workaround
|
||||
foreach($this->asyncTaskStorage as $task){
|
||||
$this->collectAsyncTask($task);
|
||||
foreach($this->asyncTaskStorage as $asyncTask){
|
||||
$this->collectAsyncTask($asyncTask);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user