mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 23:25:53 +08:00
refactor: Add asserts to check executing in worker thread
This commit is contained in:
@@ -38,6 +38,7 @@ namespace swift::core::vatsim
|
||||
|
||||
void CVatsimStatusFileReader::readInBackgroundThread()
|
||||
{
|
||||
Q_ASSERT_X(hasStarted(), Q_FUNC_INFO, "Thread was not started yet!");
|
||||
QPointer<CVatsimStatusFileReader> myself(this);
|
||||
QTimer::singleShot(0, this, [=] {
|
||||
if (!myself) { return; }
|
||||
|
||||
Reference in New Issue
Block a user