提交 128880c1 编写于 作者: A Alex Duan

add taos_close

上级 3f5d6ca9
...@@ -1117,7 +1117,6 @@ int32_t shellExecute() { ...@@ -1117,7 +1117,6 @@ int32_t shellExecute() {
ws_close(shell.ws_conn); ws_close(shell.ws_conn);
} else { } else {
#endif #endif
taos_kill_query(shell.conn);
taos_close(shell.conn); taos_close(shell.conn);
#ifdef WEBSOCKET #ifdef WEBSOCKET
} }
...@@ -1162,5 +1161,8 @@ int32_t shellExecute() { ...@@ -1162,5 +1161,8 @@ int32_t shellExecute() {
taosThreadJoin(spid, NULL); taosThreadJoin(spid, NULL);
shellCleanupHistory(); shellCleanupHistory();
taos_kill_query(shell.conn);
taos_close(shell.conn);
return 0; return 0;
} }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册