Skip to content

Commit

Permalink
sample/ssl-client-mbedtls.c: break the loop on EOF
Browse files Browse the repository at this point in the history
  • Loading branch information
azat committed Jul 9, 2022
1 parent fcf85e4 commit ce20356
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sample/ssl-client-mbedtls.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ readcb(struct bufferevent *bev, void *arg)
fwrite(buf, 1, r, stdout);
fwrite("\n", 1, 1, stdout);
fflush(stdout);
} else {
event_base_loopbreak(bufferevent_get_base(bev));
break;
}
}
}
Expand Down

0 comments on commit ce20356

Please sign in to comment.