AsyncPool: ensure TLS is always cleaned on task removal, closes #3059

This commit is contained in:
Dylan K. Taylor 2019-07-27 14:39:40 +01:00
parent 95dfff727e
commit e75a08a5a3

View File

@ -248,6 +248,7 @@ class AsyncPool{
$this->workerUsage[$this->taskWorkers[$task->getTaskId()]]--;
}
$task->removeDanglingStoredObjects();
unset($this->tasks[$task->getTaskId()]);
unset($this->taskWorkers[$task->getTaskId()]);
}