Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeff Johnston2019-06-07 11:55:28 -0400
committerJeff Johnston2019-06-07 14:05:39 -0400
commit3d699745a08141f9aa9138eefb20ac6c351a4be8 (patch)
tree806ee4385e5424889157c4ec2b75ff79b1a717ed
parent037d7779f5e9612b45684ff6ee85204983768a0d (diff)
downloadorg.eclipse.linuxtools-3d699745a08141f9aa9138eefb20ac6c351a4be8.tar.gz
org.eclipse.linuxtools-3d699745a08141f9aa9138eefb20ac6c351a4be8.tar.xz
org.eclipse.linuxtools-3d699745a08141f9aa9138eefb20ac6c351a4be8.zip
Bug 548018 - Container launch targets may disappear
- change DockerConnection setState() to not notify listeners of a disable event if we are finalizing Change-Id: I5b60530ee1f8a9e8a3afb0d722eb55fe33a03ef0 Reviewed-on: https://git.eclipse.org/r/143559 Tested-by: Linux Tools Bot <linuxtools-bot@eclipse.org> Reviewed-by: Jeff Johnston <jjohnstn@redhat.com>
-rw-r--r--containers/org.eclipse.linuxtools.docker.core/src/org/eclipse/linuxtools/internal/docker/core/DockerConnection.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/containers/org.eclipse.linuxtools.docker.core/src/org/eclipse/linuxtools/internal/docker/core/DockerConnection.java b/containers/org.eclipse.linuxtools.docker.core/src/org/eclipse/linuxtools/internal/docker/core/DockerConnection.java
index 5c395d9afe..07bef1e64a 100644
--- a/containers/org.eclipse.linuxtools.docker.core/src/org/eclipse/linuxtools/internal/docker/core/DockerConnection.java
+++ b/containers/org.eclipse.linuxtools.docker.core/src/org/eclipse/linuxtools/internal/docker/core/DockerConnection.java
@@ -338,7 +338,8 @@ public class DockerConnection
}
notifyContainerListeners(this.containers);
notifyImageListeners(this.images);
- if (oldState == EnumDockerConnectionState.ESTABLISHED) {
+ if (!isFinalizing()
+ && oldState == EnumDockerConnectionState.ESTABLISHED) {
DockerConnectionManager.instanceNotifyListeners(this,
IDockerConnectionManagerListener.DISABLE_EVENT);
}

Back to the top