Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix mosquitto_loop_stop() hangs on Windows.
Before this commit, mosquitto_loop_forever() would not always terminate on Windows when calling mosquitto_loop_stop() with the force flag set to true. This commit adds explicit thread cancellation points in mosquitto_loop_forever() as described in issue eclipse#117 to ensure that mosquitto_loop_stop() does not hang when joining the Mosquitto thread. Closes eclipse#117. Signed-off-by: Sigmund Vik <[email protected]>
- Loading branch information