Fixed AsyncTask memory leak (#922)

* Added PocketMine-TesterPlugin submodule with regression test
This commit is contained in:
Dylan K. Taylor
2017-05-17 15:43:44 +01:00
committed by GitHub
parent 8887a92d4b
commit 00e6d6a6b1
5 changed files with 27 additions and 2 deletions

View File

@ -158,6 +158,10 @@ class AsyncPool{
}
}
foreach($this->workers as $worker){
$worker->collect();
}
Timings::$schedulerAsyncTimer->stopTiming();
}
}

View File

@ -261,7 +261,8 @@ abstract class AsyncTask extends Collectable{
$this->{$p} = null;
}
}
}
$this->setGarbage();
}
}