samples: lwm2m: update client stop API
Try to deregister client when closing connection. Signed-off-by: Ryan Erickson <ryan.erickson@lairdconnect.com>
This commit is contained in:
parent
f7208bbb62
commit
e706967d34
1 changed files with 1 additions and 1 deletions
|
@ -445,7 +445,7 @@ static void rd_client_event(struct lwm2m_ctx *client,
|
||||||
|
|
||||||
case LWM2M_RD_CLIENT_EVENT_NETWORK_ERROR:
|
case LWM2M_RD_CLIENT_EVENT_NETWORK_ERROR:
|
||||||
LOG_ERR("LwM2M engine reported a network erorr.");
|
LOG_ERR("LwM2M engine reported a network erorr.");
|
||||||
lwm2m_rd_client_stop(client, rd_client_event);
|
lwm2m_rd_client_stop(client, rd_client_event, true);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue