]> git.meshlink.io Git - meshlink/blobdiff - meshlink-sample/meshlinkapp.c
Be carefull there is a race condition. You need myself to be allocated or going to...
[meshlink] / meshlink-sample / meshlinkapp.c
index 515a2d52d86a05d1516ad3676d13a56d9830c7de..0ec564e37b6f149b17c457e0706a9bc637420ba9 100644 (file)
@@ -14,6 +14,7 @@ remotenode->publickey = NULL;
 
 tinc_setup(confbase, name);
 tinc_start(confbase);
+sleep(2); //there is a race condition here, tinc_start detaches to a thread the needs time to setup stuff
 while(1) {
 
 //sample data to send out