From 8eb751fbe551aeb8a5af94c0c7e7b4960865645a Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Sun, 23 Oct 2022 05:28:28 +0200 Subject: [PATCH] Fix error --- src/Client/ClientBase.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Client/ClientBase.cpp b/src/Client/ClientBase.cpp index 1c0251e7671..ba553b07e73 100644 --- a/src/Client/ClientBase.cpp +++ b/src/Client/ClientBase.cpp @@ -1487,7 +1487,9 @@ void ClientBase::cancelQuery() if (need_render_progress && tty_buf) progress_indication.clearProgressOutput(*tty_buf); - std::cout << "Cancelling query." << std::endl; + if (is_interactive) + std::cout << "Cancelling query." << std::endl; + cancelled = true; }