mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-15 18:29:46 +00:00
Missed one
This commit is contained in:
parent
3e8825f826
commit
57e7c3d91f
@ -95,7 +95,7 @@ class ServerScheduler{
|
|||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function scheduleAsyncTaskToWorker(AsyncTask $task, $worker){
|
public function scheduleAsyncTaskToWorker(AsyncTask $task, int $worker){
|
||||||
if($task->getTaskId() !== null){
|
if($task->getTaskId() !== null){
|
||||||
throw new \UnexpectedValueException("Attempt to schedule the same AsyncTask instance twice");
|
throw new \UnexpectedValueException("Attempt to schedule the same AsyncTask instance twice");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user