QmlDesginer: catch none critical busy exception

walCheckpointFull() is writing back the log which is not
critical and should not crash the application

Change-Id: Ie01cc9be35de30dc9b89bcb00e9cd4358887c3b2
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
This commit is contained in:
Tim Jenssen
2024-06-25 13:45:24 +02:00
parent b76826d674
commit 2dcee5a89a

View File

@@ -102,7 +102,10 @@ public:
void walCheckpointFull() override
{
std::lock_guard<std::mutex> lock{m_databaseMutex};
m_databaseBackend.walCheckpointFull();
try {
m_databaseBackend.walCheckpointFull();
} catch (const StatementIsBusy &) {
}
}
void setUpdateHook(void *object,