You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2022/05/22 12:47:51 UTC
[commons-daemon] branch master updated: Comment empty block
This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-daemon.git
The following commit(s) were added to refs/heads/master by this push:
new 7e1c203 Comment empty block
7e1c203 is described below
commit 7e1c203ec66893ef1e39b799994bc75b165985bd
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sun May 22 08:47:13 2022 -0400
Comment empty block
---
src/test/java/org/apache/commons/daemon/SimpleDaemon.java | 14 ++++++++------
1 file changed, 8 insertions(+), 6 deletions(-)
diff --git a/src/test/java/org/apache/commons/daemon/SimpleDaemon.java b/src/test/java/org/apache/commons/daemon/SimpleDaemon.java
index 39ee6bb..5226965 100644
--- a/src/test/java/org/apache/commons/daemon/SimpleDaemon.java
+++ b/src/test/java/org/apache/commons/daemon/SimpleDaemon.java
@@ -152,12 +152,14 @@ public class SimpleDaemon implements Daemon, Runnable, DaemonUserSignal {
}
private void checkForReload() {
- if (this.softReloadSignalled) {
- System.err.println("SimpleDaemon: picked up reload, waiting for connections to finish...");
- while (! this.handlers.isEmpty()) {}
- System.err.println("SimpleDaemon: all connections have finished, pretending to reload");
- this.softReloadSignalled = false;
- }
+ if (this.softReloadSignalled) {
+ System.err.println("SimpleDaemon: picked up reload, waiting for connections to finish...");
+ while (!this.handlers.isEmpty()) {
+ // noop
+ }
+ System.err.println("SimpleDaemon: all connections have finished, pretending to reload");
+ this.softReloadSignalled = false;
+ }
}
protected void addHandler(final Handler handler) {