Skip to content

Commit a188d92

Browse files
committed
chore: minor code adjustment in chdb.cpp
1 parent 8a1c8d1 commit a188d92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

programs/local/chdb.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -907,7 +907,7 @@ void chdb_stream_cancel_query(chdb_connection conn, chdb_result * result)
907907
{
908908
std::shared_lock<std::shared_mutex> global_lock(global_connection_mutex);
909909

910-
if (!result)
910+
if (!result || !conn)
911911
return;
912912

913913
auto connection = reinterpret_cast<chdb_conn *>(conn);

0 commit comments

Comments
 (0)