mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-31 22:23:06 +00:00
ntpclient: fix NTP daemon state in case of DNS failure
This commit is contained in:
parent
18137c0fec
commit
bd537f286d
1 changed files with 3 additions and 0 deletions
|
|
@ -383,6 +383,9 @@ static int ntpc_daemon(int argc, char **argv)
|
|||
{
|
||||
nerr("ERROR: Failed to resolve '%s'\n",
|
||||
CONFIG_NETUTILS_NTPCLIENT_SERVER);
|
||||
|
||||
g_ntpc_daemon.state = NTP_STOPPED;
|
||||
sem_post(&g_ntpc_daemon.sync);
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue