X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=src%2Fmeshlink.c;h=b3b18074b171c9d93b3217fcbde533b7a4a80326;hb=7bbb509d0d0e00b998c0b253574c39da9e0ff56b;hp=1c763d6a668e632a70650d648e259c9aedb66d88;hpb=3d422139648b99fa100f3ff0628b97c0c629a665;p=meshlink diff --git a/src/meshlink.c b/src/meshlink.c index 1c763d6a..b3b18074 100644 --- a/src/meshlink.c +++ b/src/meshlink.c @@ -965,6 +965,8 @@ bool meshlink_start(meshlink_handle_t *mesh) { // Start the main thread + event_loop_start(&mesh->loop); + if(pthread_create(&mesh->thread, NULL, meshlink_main_loop, mesh) != 0) { logger(mesh, MESHLINK_DEBUG, "Could not start thread: %s\n", strerror(errno)); memset(&mesh->thread, 0, sizeof mesh->thread);