提交 66fb5aa1 编写于 作者: K Kozlov Dmitry

cli: fixed incorrect "exit" handling

上级 782fe820
......@@ -73,7 +73,7 @@ static void disconnect(struct tcp_client_t *cln)
static void cli_client_disconnect(struct cli_client_t *tcln)
{
struct tcp_client_t *cln = container_of(tcln, typeof(*cln), cli_client);
disconnect(cln);
cln->disconnect = 1;
}
static void queue_buffer(struct tcp_client_t *cln, struct buffer_t *b)
......
......@@ -120,7 +120,7 @@ static void disconnect(struct telnet_client_t *cln)
static void cli_client_disconnect(struct cli_client_t *tcln)
{
struct telnet_client_t *cln = container_of(tcln, typeof(*cln), cli_client);
disconnect(cln);
cln->disconnect = 1;
}
static void queue_buffer(struct telnet_client_t *cln, struct buffer_t *b)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册