Skip to content

Commit 6eced0a

Browse files
committed
Treat dead container as conflict
1 parent b3e0a9a commit 6eced0a

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

JShellAPI/src/main/java/org/togetherjava/jshellapi/service/JShellService.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,10 @@ public Optional<JShellResult> eval(String code) throws DockerException {
6565
return Optional.empty();
6666
}
6767
}
68+
if (isClosed()) {
69+
close();
70+
return Optional.empty();
71+
}
6872
updateLastTimeout();
6973
if(!code.endsWith("\n")) code += '\n';
7074
try {

0 commit comments

Comments
 (0)