mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-26 01:22:04 +00:00
Merge pull request #28881 from azat/mysql-sync-thread-joinable
Join MaterializedMySQLSyncThread only if it is joinable
This commit is contained in:
commit
aef6112af4
@ -233,7 +233,8 @@ void MaterializedMySQLSyncThread::stopSynchronization()
|
||||
if (!sync_quit && background_thread_pool)
|
||||
{
|
||||
sync_quit = true;
|
||||
background_thread_pool->join();
|
||||
if (background_thread_pool->joinable())
|
||||
background_thread_pool->join();
|
||||
client.disconnect();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user