summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/rc/runscript.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/rc/runscript.c b/src/rc/runscript.c
index d055730..6c8f1ae 100644
--- a/src/rc/runscript.c
+++ b/src/rc/runscript.c
@@ -560,12 +560,13 @@ svc_wait(const char *svc)
break;
}
- if (!forever)
+ if (!forever) {
nloops --;
- if (--sloops == 0) {
- ewarn("%s: waiting for %s", applet, svc);
- sloops = (ONE_SECOND / WAIT_INTERVAL) * 5;
+ if (--sloops == 0) {
+ ewarn("%s: waiting for %s", applet, svc);
+ sloops = (ONE_SECOND / WAIT_INTERVAL) * 5;
+ }
}
}