DB IDO: Reset reconnect timer before pausing the connection

refs #6414
This commit is contained in:
Michael Friedrich 2014-07-08 13:48:11 +02:00
parent 4800cbb210
commit f19cc514b9
2 changed files with 4 additions and 4 deletions

View File

@ -84,10 +84,10 @@ void IdoMysqlConnection::Resume(void)
void IdoMysqlConnection::Pause(void)
{
DbConnection::Pause();
m_ReconnectTimer.reset();
DbConnection::Pause();
m_QueryQueue.Enqueue(boost::bind(&IdoMysqlConnection::Disconnect, this));
m_QueryQueue.Join();
}

View File

@ -86,10 +86,10 @@ void IdoPgsqlConnection::Resume(void)
void IdoPgsqlConnection::Pause(void)
{
DbConnection::Pause();
m_ReconnectTimer.reset();
DbConnection::Pause();
m_QueryQueue.Enqueue(boost::bind(&IdoPgsqlConnection::Disconnect, this));
m_QueryQueue.Join();
}