From f92fb16087c1d068fd2cc5562c6a9ff04459acee Mon Sep 17 00:00:00 2001 From: Saverio Proto Date: Sat, 7 Jun 2014 13:20:53 +0200 Subject: [PATCH 1/1] Start the mesh after joining with invitation --- examples/chat.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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"); -- 2.39.2