aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--networking/ntpd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/networking/ntpd.c b/networking/ntpd.c
index 938c7f040..ba666b513 100644
--- a/networking/ntpd.c
+++ b/networking/ntpd.c
@@ -2086,7 +2086,7 @@ int ntpd_main(int argc UNUSED_PARAM, char **argv)
/* Here we may block */
VERB2 {
- if (i > ENABLE_FEATURE_NTPD_SERVER) {
+ if (i > (ENABLE_FEATURE_NTPD_SERVER && G.listen_fd != -1)) {
/* We wait for at least one reply.
* Poll for it, without wasting time for message.
* Since replies often come under 1 second, this also