THe QueryTool now reconnects when the connection is lost.

This commit is contained in:
eelke 2020-04-04 07:49:44 +02:00
parent b87f587a40
commit adb44fc157
2 changed files with 5 additions and 0 deletions

View file

@ -465,6 +465,8 @@ void ASyncDBConnection::setupConnection(const ConnectionConfig &config)
m_threadData->stop();
m_thread.join();
}
m_threadData.reset(new ASyncDBConnectionThread(this));
m_threadData->m_config = config;
m_thread = std::thread([this] () { m_threadData->run(); });