Merge pull request #22841 from taosdata/fix/TD-25980-1-MAIN

fix: cancel core
This commit is contained in:
Alex Duan 2023-09-12 10:57:38 +08:00 committed by GitHub
commit 8ca06ad3b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -260,7 +260,7 @@ void shellRunSingleCommandWebsocketImp(char *command) {
WS_RES* res;
for (int reconnectNum = 0; reconnectNum < 2; reconnectNum++) {
if (!shell.ws_conn && shell_conn_ws_server(0)) {
if (!shell.ws_conn && shell_conn_ws_server(0) || shell.stop_query) {
return;
}
st = taosGetTimestampUs();