Skip to content

Commit

Permalink
Fix segment error
Browse files Browse the repository at this point in the history
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
  • Loading branch information
Jianhui Zhao committed Jan 12, 2018
1 parent 894ae44 commit 6e2aed8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion example/helloworld.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ static void uwsc_onerror(struct uwsc_client *cl)
static void uwsc_onclose(struct uwsc_client *cl)
{
printf("onclose\n");
cl->free(cl);
uloop_done();
}

Expand All @@ -77,6 +76,7 @@ int main(int argc, char **argv)
uloop_run();

cl->send(cl, NULL, 0, WEBSOCKET_OP_CLOSE);
cl->free(cl);

uloop_done();

Expand Down

0 comments on commit 6e2aed8

Please sign in to comment.