Commit e0afe3b6 authored by Daniel Vrátil's avatar Daniel Vrátil 🤖

Restart DataStore's keep-alive query when opening connection

parent a2a85090
......@@ -95,7 +95,6 @@ DataStore::DataStore()
m_keepAliveTimer->setInterval(3600 * 1000);
QObject::connect(m_keepAliveTimer, &QTimer::timeout,
this, &DataStore::sendKeepAliveQuery);
m_keepAliveTimer->start();
}
}
......@@ -137,6 +136,10 @@ void DataStore::open()
});
DbConfig::configuredDatabase()->initSession(m_database);
if (m_keepAliveTimer) {
m_keepAliveTimer->start();
}
}
QSqlDatabase DataStore::database()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment