From: Saverio Proto Date: Sat, 7 Jun 2014 11:20:53 +0000 (+0200) Subject: Start the mesh after joining with invitation X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=f92fb16087c1d068fd2cc5562c6a9ff04459acee;p=meshlink Start the mesh after joining with invitation --- diff --git a/examples/chat.c b/examples/chat.c index 7859ae4c..887d1440 100644 --- a/examples/chat.c +++ b/examples/chat.c @@ -56,8 +56,10 @@ static void parse_command(meshlink_handle_t *mesh, char *buf) { if(!meshlink_join(mesh, arg)) fprintf(stderr, "Could not join using invitation: %s\n", mesh->errstr); - else + else { fprintf(stderr, "Invitation accepted!\n"); + meshlink_start(mesh); + } } else if(!strcasecmp(buf, "kick")) { if(!arg) { fprintf(stderr, "/kick requires an argument!\n");