diff options
author | Eric Sauvageau <rmerl@lostrealm.ca> | 2018-03-12 06:48:44 +0300 |
---|---|---|
committer | Eric Sauvageau <rmerl@lostrealm.ca> | 2018-03-12 06:48:44 +0300 |
commit | ca28e0f97283f5474466c424c8c268c795eeb156 (patch) | |
tree | dec79f31973c2a523c7ff8ab4263c028d19f892d /release | |
parent | 51ef3f520e487d261c42783f2e75eb8ff7e2d47a (diff) |
rc: miniupnpd: wait 10 secs before restarting miniupnpd on ntp's first sync
Diffstat (limited to 'release')
-rw-r--r-- | release/src/router/rc/ntp.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/release/src/router/rc/ntp.c b/release/src/router/rc/ntp.c index dad9927e5a..41e420c481 100644 --- a/release/src/router/rc/ntp.c +++ b/release/src/router/rc/ntp.c @@ -56,8 +56,6 @@ static void ntp_service() setup_timezone(); - if (is_routing_enabled()) - notify_rc_and_period_wait("restart_upnp", 25); #ifdef RTCONFIG_DISK_MONITOR notify_rc("restart_diskmon"); #endif @@ -67,6 +65,11 @@ static void ntp_service() reload_dnsmasq(); } #endif + + if (is_routing_enabled()) { + sleep(10); + notify_rc_and_period_wait("restart_upnp", 25); + } } } |