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); }