forked from qt-creator/qt-creator
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:
@@ -102,7 +102,10 @@ public:
|
|||||||
void walCheckpointFull() override
|
void walCheckpointFull() override
|
||||||
{
|
{
|
||||||
std::lock_guard<std::mutex> lock{m_databaseMutex};
|
std::lock_guard<std::mutex> lock{m_databaseMutex};
|
||||||
|
try {
|
||||||
m_databaseBackend.walCheckpointFull();
|
m_databaseBackend.walCheckpointFull();
|
||||||
|
} catch (const StatementIsBusy &) {
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void setUpdateHook(void *object,
|
void setUpdateHook(void *object,
|
||||||
|
Reference in New Issue
Block a user