Skip to content

Commit ca28e0f

Browse files
committed
rc: miniupnpd: wait 10 secs before restarting miniupnpd on ntp's first sync
1 parent 51ef3f5 commit ca28e0f

File tree

1 file changed

+5
-2
lines changed
  • release/src/router/rc

1 file changed

+5
-2
lines changed

release/src/router/rc/ntp.c

+5-2
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,6 @@ static void ntp_service()
5656

5757
setup_timezone();
5858

59-
if (is_routing_enabled())
60-
notify_rc_and_period_wait("restart_upnp", 25);
6159
#ifdef RTCONFIG_DISK_MONITOR
6260
notify_rc("restart_diskmon");
6361
#endif
@@ -67,6 +65,11 @@ static void ntp_service()
6765
reload_dnsmasq();
6866
}
6967
#endif
68+
69+
if (is_routing_enabled()) {
70+
sleep(10);
71+
notify_rc_and_period_wait("restart_upnp", 25);
72+
}
7073
}
7174
}
7275

0 commit comments

Comments
 (0)