mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
fix(db): Made RawDatabase::execLater executes statements asynchronously.
Currently RawDatabase::execLater sometimes executes dependent statements synchronously. Qt::QueuedConnection ensures they are really executed later.
This commit is contained in:
parent
db2e2d7ab7
commit
54fb9f73cc
|
@ -294,7 +294,7 @@ void RawDatabase::execLater(const QVector<RawDatabase::Query>& statements)
|
|||
pendingTransactions.enqueue(trans);
|
||||
}
|
||||
|
||||
QMetaObject::invokeMethod(this, "process");
|
||||
QMetaObject::invokeMethod(this, "process", Qt::QueuedConnection);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue
Block a user