Skip to content

Commit

Permalink
Simplify
Browse files Browse the repository at this point in the history
Co-authored-by: Jesse Glick <[email protected]>
  • Loading branch information
Vlatombe and jglick authored Nov 4, 2024
1 parent 86373ff commit 5e79c6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/hudson/remoting/Engine.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 5e79c6f

Please sign in to comment.