Skip to content

Commit

Permalink
Issue #6020 Fix redeploy error jetty-maven-plugin
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Bartel <janb@webtide.com>
  • Loading branch information
janbartel committed Mar 2, 2021
1 parent 06e1a7e commit 075b21e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Expand Up @@ -146,7 +146,7 @@ private void startScanner()
scanner.setScanDepth(Scanner.MAX_SCAN_DEPTH); //always fully walk directory hierarchies
scanner.setReportExistingFilesOnStartup(false);
configureScanner();
getLog().info("Scan interval ms = " + scan);
getLog().info("Scan interval sec = " + scan);
scanner.start();
}
else
Expand Down
4 changes: 2 additions & 2 deletions jetty-util/src/main/java/org/eclipse/jetty/util/Scanner.java
Expand Up @@ -37,8 +37,8 @@
import java.util.function.Predicate;

import org.eclipse.jetty.util.component.AbstractLifeCycle;
import org.eclipse.jetty.util.thread.ScheduledExecutorScheduler;
import org.eclipse.jetty.util.thread.Scheduler;
import org.eclipse.jetty.util.thread.TimerScheduler;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

Expand Down Expand Up @@ -516,7 +516,7 @@ public void doStart() throws Exception


//Create the scheduler and start it
_scheduler = new ScheduledExecutorScheduler("Scanner-" + SCANNER_IDS.getAndIncrement(), true, 1);
_scheduler = new TimerScheduler("Scanner-" + SCANNER_IDS.getAndIncrement(), true);
_scheduler.start();

//schedule the scan
Expand Down

0 comments on commit 075b21e

Please sign in to comment.