From 46951b8598909771db1e84980f1210c9b8338e26 Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Thu, 10 Apr 2014 18:22:09 +0200 Subject: [PATCH] main: setup access restrictions before initstepslew --- main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.c b/main.c index dec753d..afdec05 100644 --- a/main.c +++ b/main.c @@ -144,7 +144,6 @@ post_init_ntp_hook(void *anything) semblence of validity about it. */ SRC_ReloadSources(); } - CNF_SetupAccessRestrictions(); RTC_StartMeasurements(); RCL_StartRefclocks(); @@ -484,6 +483,8 @@ int main /* From now on, it is safe to do finalisation on exit */ initialised = 1; + CNF_SetupAccessRestrictions(); + if (ref_mode == REF_ModeNormal && CNF_GetInitSources() > 0) { ref_mode = REF_ModeInitStepSlew; }