Fixed synchronised access to priorityTaskList