Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteffen Pingel2013-05-03 14:36:37 +0000
committerSteffen Pingel2013-05-03 14:36:37 +0000
commit2dc5856cb4a08832727818afd88cd809b29ff295 (patch)
tree41f989aa482b9c75d9238180758c7e039f8396b4 /org.eclipse.mylyn.tasks.ui
parentaf505574701f1e70b64d892666dac6f4cffe9945 (diff)
downloadorg.eclipse.mylyn.tasks-2dc5856cb4a08832727818afd88cd809b29ff295.tar.gz
org.eclipse.mylyn.tasks-2dc5856cb4a08832727818afd88cd809b29ff295.tar.xz
org.eclipse.mylyn.tasks-2dc5856cb4a08832727818afd88cd809b29ff295.zip
cancel synchronization job after completing test
Diffstat (limited to 'org.eclipse.mylyn.tasks.ui')
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/TaskListSynchronizationScheduler.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/TaskListSynchronizationScheduler.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/TaskListSynchronizationScheduler.java
index cae5ebc2b..5e2d334ca 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/TaskListSynchronizationScheduler.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/TaskListSynchronizationScheduler.java
@@ -169,4 +169,9 @@ public class TaskListSynchronizationScheduler implements IUserAttentionListener
reschedule();
}
+ public void dispose() {
+ refreshJob.removeJobChangeListener(jobListener);
+ refreshJob.cancel();
+ }
+
}

Back to the top