diff --git a/lib/db_ido/dbconnection.cpp b/lib/db_ido/dbconnection.cpp index 62a9c5c3d..3650b73ac 100644 --- a/lib/db_ido/dbconnection.cpp +++ b/lib/db_ido/dbconnection.cpp @@ -245,7 +245,7 @@ void DbConnection::CleanUpHandler() void DbConnection::LogStatsHandler() { - if (!GetConnected()) + if (!GetConnected() || IsPaused()) return; auto pending = m_PendingQueries.load(); diff --git a/lib/db_ido_mysql/idomysqlconnection.cpp b/lib/db_ido_mysql/idomysqlconnection.cpp index f4fa465e9..83919a330 100644 --- a/lib/db_ido_mysql/idomysqlconnection.cpp +++ b/lib/db_ido_mysql/idomysqlconnection.cpp @@ -475,7 +475,7 @@ void IdoMysqlConnection::FinishConnect(double startTime) { AssertOnWorkQueue(); - if (!GetConnected()) + if (!GetConnected() || IsPaused()) return; FinishAsyncQueries();