]> git.meshlink.io Git - meshlink/commit
Fix race condition when calling meshlink_stop() immediately after meshlink_start().
authorGuus Sliepen <guus@meshlink.io>
Fri, 13 Nov 2015 08:50:45 +0000 (08:50 +0000)
committerGuus Sliepen <guus@meshlink.io>
Sun, 25 Jun 2017 08:45:53 +0000 (10:45 +0200)
commit7bbb509d0d0e00b998c0b253574c39da9e0ff56b
treeca009338278302eb25d30c34a4039b4233844138
parent3d422139648b99fa100f3ff0628b97c0c629a665
Fix race condition when calling meshlink_stop() immediately after meshlink_start().

The event loop didn't react to event_loop_stop() if it wasn't started yet
(because that is done in mesh->thread). The solution is to add a
event_loop_start() function that is to be called by meshlink_start().
src/event.c
src/event.h
src/meshlink.c