mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-04 00:55:14 +00:00
Fixed AsyncTask memory leak (#922)
* Added PocketMine-TesterPlugin submodule with regression test
This commit is contained in:
@ -158,6 +158,10 @@ class AsyncPool{
|
||||
}
|
||||
}
|
||||
|
||||
foreach($this->workers as $worker){
|
||||
$worker->collect();
|
||||
}
|
||||
|
||||
Timings::$schedulerAsyncTimer->stopTiming();
|
||||
}
|
||||
}
|
||||
|
@ -261,7 +261,8 @@ abstract class AsyncTask extends Collectable{
|
||||
$this->{$p} = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$this->setGarbage();
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user