aboutsummaryrefslogtreecommitdiff
path: root/eperd/ntp.c
diff options
context:
space:
mode:
Diffstat (limited to 'eperd/ntp.c')
-rw-r--r--eperd/ntp.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/eperd/ntp.c b/eperd/ntp.c
index fb788c2..c1d509a 100644
--- a/eperd/ntp.c
+++ b/eperd/ntp.c
@@ -1830,12 +1830,11 @@ static void traceroute_start2(void *state)
ntpstate= state;
- if (ntpstate->busy)
+ if (!ntpstate->busy)
{
- printf("ntp_start: busy, can't start\n");
+ printf("ntp_start: not busy, can't continue\n");
return;
}
- ntpstate->busy= 1;
ntpstate->min= ULONG_MAX;
ntpstate->max= 0;
@@ -2070,6 +2069,13 @@ static void ntp_start(void *state)
ntpstate= state;
+ if (ntpstate->busy)
+ {
+ printf("ntp_start: busy, can't start\n");
+ return;
+ }
+ ntpstate->busy= 1;
+
if (ntpstate->response_out)
{
ntpstate->resp_file_out= fopen(ntpstate->response_out, "w");