We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4a258a4 commit 2e7d69fCopy full SHA for 2e7d69f
core/src/main/java/org/testcontainers/dockerclient/transport/TestcontainersDockerCmdExecFactory.java
@@ -37,6 +37,7 @@
37
import java.util.concurrent.TimeUnit;
38
39
import static com.google.common.base.Preconditions.checkNotNull;
40
+import static com.google.common.base.Preconditions.checkState;
41
42
/**
43
* This class is a modified version of docker-java's NettyDockerCmdExecFactory v3.1.0-rc-2
@@ -91,6 +92,8 @@ public void init(DockerClientConfig dockerClientConfig) {
91
92
}
93
94
private DuplexChannel connect() {
95
+ checkState(!eventLoopGroup.isShuttingDown(), "EventLoop is shutting down");
96
+
97
try {
98
return connect(bootstrap);
99
} catch (InterruptedException e) {
0 commit comments