Skip to content

Commit e706967

Browse files
rerickson1cfriedt
authored andcommitted
samples: lwm2m: update client stop API
Try to deregister client when closing connection. Signed-off-by: Ryan Erickson <[email protected]>
1 parent f7208bb commit e706967

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

samples/net/lwm2m_client/src/lwm2m-client.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ static void rd_client_event(struct lwm2m_ctx *client,
445445

446446
case LWM2M_RD_CLIENT_EVENT_NETWORK_ERROR:
447447
LOG_ERR("LwM2M engine reported a network erorr.");
448-
lwm2m_rd_client_stop(client, rd_client_event);
448+
lwm2m_rd_client_stop(client, rd_client_event, true);
449449
break;
450450
}
451451
}

0 commit comments

Comments
 (0)