Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Valenta2005-05-17 19:29:56 +0000
committerMichael Valenta2005-05-17 19:29:56 +0000
commitdc06777b685275ab342c0ed6e9ba04e5df766091 (patch)
treecec4dbeea1cf89f852600fc15b258b5ac0322504
parent39e43d36495b985b135ccb38debc1f190fc20d33 (diff)
downloadeclipse.platform.team-dc06777b685275ab342c0ed6e9ba04e5df766091.tar.gz
eclipse.platform.team-dc06777b685275ab342c0ed6e9ba04e5df766091.tar.xz
eclipse.platform.team-dc06777b685275ab342c0ed6e9ba04e5df766091.zip
Bug 95176 Jobs still running after platform shutdown
-rw-r--r--bundles/org.eclipse.team.core/src/org/eclipse/team/internal/core/subscribers/SubscriberChangeSetCollector.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/bundles/org.eclipse.team.core/src/org/eclipse/team/internal/core/subscribers/SubscriberChangeSetCollector.java b/bundles/org.eclipse.team.core/src/org/eclipse/team/internal/core/subscribers/SubscriberChangeSetCollector.java
index 128419d14..1df6ec588 100644
--- a/bundles/org.eclipse.team.core/src/org/eclipse/team/internal/core/subscribers/SubscriberChangeSetCollector.java
+++ b/bundles/org.eclipse.team.core/src/org/eclipse/team/internal/core/subscribers/SubscriberChangeSetCollector.java
@@ -57,6 +57,8 @@ public class SubscriberChangeSetCollector extends ChangeSetCollector implements
*/
protected void processEvent(Event event, IProgressMonitor monitor) throws CoreException {
// Handle everything in the dispatch
+ if (isShutdown())
+ throw new OperationCanceledException();
dispatchEvents.add(event);
}
@@ -67,6 +69,8 @@ public class SubscriberChangeSetCollector extends ChangeSetCollector implements
if (dispatchEvents.isEmpty()) {
return false;
}
+ if (isShutdown())
+ throw new OperationCanceledException();
SyncInfoTree[] locked = null;
try {
locked = beginDispath();
@@ -82,6 +86,8 @@ public class SubscriberChangeSetCollector extends ChangeSetCollector implements
default:
break;
}
+ if (isShutdown())
+ throw new OperationCanceledException();
}
} finally {
try {

Back to the top