mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 01:46:04 +00:00
AsyncWorker: added removeFromThreadStore()
and use it instead of overwriting with null things, which still occupies memory
This commit is contained in:
@ -35,7 +35,7 @@ class GeneratorUnregisterTask extends AsyncTask{
|
||||
}
|
||||
|
||||
public function onRun(){
|
||||
$this->saveToThreadStore("generation.level{$this->levelId}.manager", null);
|
||||
$this->saveToThreadStore("generation.level{$this->levelId}.generator", null);
|
||||
$this->removeFromThreadStore("generation.level{$this->levelId}.manager");
|
||||
$this->removeFromThreadStore("generation.level{$this->levelId}.generator");
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user