add taos_close

This commit is contained in:
Alex Duan 2023-02-15 11:27:44 +08:00
parent 3f5d6ca988
commit 128880c1cf
1 changed files with 3 additions and 1 deletions

View File

@ -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() {
taosThreadJoin(spid, NULL); taosThreadJoin(spid, NULL);
shellCleanupHistory(); shellCleanupHistory();
taos_kill_query(shell.conn);
taos_close(shell.conn);
return 0; return 0;
} }