Skip to content

Commit

Permalink
Merge pull request #20 from leenzhu/rtty-18-fix
Browse files Browse the repository at this point in the history
fix bug #18
  • Loading branch information
Jianhui Zhao authored May 23, 2018
2 parents f86eeba + 252e9f2 commit 2c0fde6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@ static void uwsc_onclose(struct uwsc_client *cl)
pkt = NULL;
}

avl_remove_all_elements(&tty_sessions, tty, avl, tmp)
avl_for_each_element_safe(&tty_sessions, tty, avl, tmp)
del_tty_session(tty);

cl->send(cl, NULL, 0, WEBSOCKET_OP_CLOSE);
Expand Down

0 comments on commit 2c0fde6

Please sign in to comment.