Merge pull request #20 from leenzhu/rtty-18-fix

fix bug #18
This commit is contained in:
Jianhui Zhao
2018-05-23 17:57:18 +08:00
committed by GitHub
+1 -1
View File
@@ -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);