Skip to content
Commit 7a2a28b9 authored by Maik Vermeulen's avatar Maik Vermeulen Committed by Anas Nashif
Browse files

net: lwm2m: Synchronized functions mutating the RD client's state



A mutex is used to syncrhonize the start, stop and service() functions
of the RD client. Previously it could happen that while service() was
working on e.g. bootstrapping, a stop() call by another thread would
close the socket. Then the bootstrapping process would detect it as a
network error, and restart the process.

Fixes #37170.

Signed-off-by: default avatarMaik Vermeulen <maik.vermeulen@innotractor.com>
parent 36a38538
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment