Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorspingel2009-09-24 21:21:40 -0400
committerspingel2009-09-24 21:21:40 -0400
commitc5e6cc1d8c39059ffaf0b46e1be56810dc0063a9 (patch)
treebd1e7e3537060da0f0687b54cc5d306619355cbe /org.eclipse.mylyn.tasks.core
parentf33e5197c83434a874ea882112eec1874dd89a50 (diff)
downloadorg.eclipse.mylyn.tasks-c5e6cc1d8c39059ffaf0b46e1be56810dc0063a9.tar.gz
org.eclipse.mylyn.tasks-c5e6cc1d8c39059ffaf0b46e1be56810dc0063a9.tar.xz
org.eclipse.mylyn.tasks-c5e6cc1d8c39059ffaf0b46e1be56810dc0063a9.zip
NEW - bug 256595: deadlock when submitting attachment to bugzilla issue
https://bugs.eclipse.org/bugs/show_bug.cgi?id=256595
Diffstat (limited to 'org.eclipse.mylyn.tasks.core')
-rw-r--r--org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/TaskList.java9
1 files changed, 6 insertions, 3 deletions
diff --git a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/TaskList.java b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/TaskList.java
index 2114460dd..3aa4c9e95 100644
--- a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/TaskList.java
+++ b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/TaskList.java
@@ -686,10 +686,13 @@ public class TaskList implements ITaskList, ITransferList {
private void unlock() {
HashSet<TaskContainerDelta> toFire = null;
- if (lock.getDepth() == 1) {
- toFire = new HashSet<TaskContainerDelta>(delta);
+ try {
+ if (lock.getDepth() == 1) {
+ toFire = new HashSet<TaskContainerDelta>(delta);
+ }
+ } finally {
+ lock.release();
}
- lock.release();
if (toFire != null && toFire.size() > 0) {
fireDelta(toFire);
}

Back to the top