Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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: Maik Vermeulen <maik.vermeulen@innotractor.com>
- Loading branch information
Showing
1 changed file
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters