mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
fix cancelation
This commit is contained in:
parent
86e3299135
commit
475344231a
@ -803,9 +803,10 @@ void TCPHandler::runImpl()
|
||||
if (thread_trace_context)
|
||||
thread_trace_context->root_span.addAttribute(*exception);
|
||||
|
||||
if (out && out->isCanceled())
|
||||
if (!out || out->isCanceled())
|
||||
{
|
||||
LOG_DEBUG(log, "Can't send logs or exception to client. Close connection.");
|
||||
query_state->cancelOut(out);
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user