mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-04 17:06:16 +00:00
Merge remote-tracking branch 'origin/stable'
This commit is contained in:
@ -142,7 +142,7 @@ class TaskScheduler{
|
||||
continue;
|
||||
}
|
||||
$task->run();
|
||||
if($task->isRepeating()){
|
||||
if(!$task->isCancelled() && $task->isRepeating()){
|
||||
$task->setNextRun($this->currentTick + $task->getPeriod());
|
||||
$this->queue->insert($task, $this->currentTick + $task->getPeriod());
|
||||
}else{
|
||||
|
Reference in New Issue
Block a user