aboutsummaryrefslogtreecommitdiff
path: root/src/rc
diff options
context:
space:
mode:
Diffstat (limited to 'src/rc')
-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 d0557307..6c8f1aee 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;
+ }
}
}