From 29cd95ec10f2d55a66959a0f5f04b15e5f73e133 Mon Sep 17 00:00:00 2001 From: Jesse Glick Date: Tue, 22 Mar 2022 00:35:58 -0400 Subject: [PATCH] [JENKINS-68080] `FilePath.actAsync` is dangerous and not necessary in `FileMonitoringController.watch` (#147) --- .../org/jenkinsci/plugins/durabletask/FileMonitoringTask.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/jenkinsci/plugins/durabletask/FileMonitoringTask.java b/src/main/java/org/jenkinsci/plugins/durabletask/FileMonitoringTask.java index f2566d97..7ff6db4c 100644 --- a/src/main/java/org/jenkinsci/plugins/durabletask/FileMonitoringTask.java +++ b/src/main/java/org/jenkinsci/plugins/durabletask/FileMonitoringTask.java @@ -545,7 +545,7 @@ public FilePath getOutputFile(FilePath workspace) throws IOException, Interrupte } @Override public void watch(FilePath workspace, Handler handler, TaskListener listener) throws IOException, InterruptedException, ClassCastException { - workspace.actAsync(new StartWatching(this, handler, listener)); + workspace.act(new StartWatching(this, handler, listener)); LOGGER.log(Level.FINE, "started asynchronous watch in {0}", controlDir); }