mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-04 08:36:52 +08:00
Check in readers "for shutdown"
* myself pattern * use read as function name
This commit is contained in:
committed by
Mat Sutcliffe
parent
a340167493
commit
f2b0417942
@@ -47,9 +47,12 @@ namespace BlackCore
|
||||
|
||||
void CVatsimStatusFileReader::readInBackgroundThread()
|
||||
{
|
||||
const bool s = QMetaObject::invokeMethod(this, &CVatsimStatusFileReader::read);
|
||||
Q_ASSERT_X(s, Q_FUNC_INFO, "Invoke failed");
|
||||
Q_UNUSED(s);
|
||||
QPointer<CVatsimStatusFileReader> myself(this);
|
||||
QTimer::singleShot(0, this, [ = ]
|
||||
{
|
||||
if (!myself) { return; }
|
||||
myself->read();
|
||||
});
|
||||
}
|
||||
|
||||
CUrlList CVatsimStatusFileReader::getMetarFileUrls() const
|
||||
|
||||
Reference in New Issue
Block a user