Skip to content

Commit

Permalink
Handle ForkedTaskExecutor edge case
Browse files Browse the repository at this point in the history
  • Loading branch information
lukebemish committed Jan 1, 2025
1 parent 42201af commit 4971e0a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[versions]

forkedtaskexecutor = "0.1.3"
forkedtaskexecutor = "0.1.4"
picocli = "4.7.6"
slf4j = "2.0.13"
asm = "9.7"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,7 @@ private static String key(Path[] classpath) {

private static synchronized void clearInstance(ToolDaemonExecutor it, Path @Nullable [] classpath) {
if (classpath == null && INSTANCE == it) {
var oldInstance = INSTANCE;
TO_CLOSE.add(new WeakReference<>(oldInstance));
TO_CLOSE.add(new WeakReference<>(it));
INSTANCE = null;
} else {
var key = key(classpath);
Expand Down

0 comments on commit 4971e0a

Please sign in to comment.