summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteffen Pingel2013-05-06 18:28:42 (EDT)
committerGerrit Code Review @ Eclipse.org2013-05-07 03:24:41 (EDT)
commitaed8506a9120bc68c280c0039406a90c8b5c957e (patch)
treee93eb13fce2a60f2e2c759cdf6945a23ba46f6eb
parenteebcd50a4707cd0cde33963b25dd841a7d574d89 (diff)
downloadorg.eclipse.mylyn.tasks-aed8506a9120bc68c280c0039406a90c8b5c957e.zip
org.eclipse.mylyn.tasks-aed8506a9120bc68c280c0039406a90c8b5c957e.tar.gz
org.eclipse.mylyn.tasks-aed8506a9120bc68c280c0039406a90c8b5c957e.tar.bz2
401911: IllegalStateException when restarting while synchronization isrefs/changes/24/11224/4
in progress Change-Id: Ib0eca7d6f205b4b37271fd7beb0d2a8cee509cde Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=401911
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/TaskListSynchronizationScheduler.java3
1 files changed, 2 insertions, 1 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 5e2d334..757f07a 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
@@ -20,6 +20,7 @@ import org.eclipse.mylyn.commons.core.DateUtil;
import org.eclipse.mylyn.internal.tasks.core.ITaskJobFactory;
import org.eclipse.mylyn.monitor.ui.IUserAttentionListener;
import org.eclipse.mylyn.tasks.core.sync.SynchronizationJob;
+import org.eclipse.ui.PlatformUI;
/**
* @author Steffen Pingel
@@ -70,7 +71,7 @@ public class TaskListSynchronizationScheduler implements IUserAttentionListener
private synchronized void reschedule() {
long delay = this.interval;
- if (delay != 0) {
+ if (delay != 0 && PlatformUI.isWorkbenchRunning()) {
if (!userActive) {
// triple scheduling interval each time
this.inactiveInterval *= 3;