mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
dhcpc: reset the state of the "cancel" variable when restarting the async dhcpc thread.
This commit is contained in:
parent
c138651300
commit
8cb0bf3eab
1 changed files with 1 additions and 0 deletions
|
|
@ -959,6 +959,7 @@ int dhcpc_request_async(FAR void *handle, dhcpc_callback_t callback)
|
|||
}
|
||||
|
||||
pdhcpc->callback = callback;
|
||||
pdhcpc->cancel = 0;
|
||||
ret = pthread_create(&pdhcpc->thread, NULL, dhcpc_run, pdhcpc);
|
||||
if (ret != 0)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue