diff --git a/src/main/java/hudson/remoting/Engine.java b/src/main/java/hudson/remoting/Engine.java index eaea34ecf..2850b794b 100644 --- a/src/main/java/hudson/remoting/Engine.java +++ b/src/main/java/hudson/remoting/Engine.java @@ -904,7 +904,7 @@ ExponentialRetry next(EngineListenerSplitter events) throws InterruptedException return null; } else { events.status("Waiting " + DurationFormatter.format(next.delay) + " before retry"); - TimeUnit.SECONDS.sleep(next.delay.toSeconds()); + Thread.sleep(next.delay.toMillis()); } return next; }