mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-10 05:55:33 +08:00
Utility function to directly log warning when network not accessible
This commit is contained in:
committed by
Mathew Sutcliffe
parent
8aed8f598e
commit
76b3b6c0b6
@@ -64,11 +64,7 @@ namespace BlackCore
|
||||
{
|
||||
this->threadAssertCheck();
|
||||
if (!this->doWorkCheck()) { return; }
|
||||
if (!this->isNetworkAccessible())
|
||||
{
|
||||
CLogMessage(this).warning("No network, cannot read VATSIM bookings");
|
||||
return;
|
||||
}
|
||||
if (!this->isNetworkAccessible("No network, cannot read VATSIM bookings")) { return; }
|
||||
|
||||
Q_ASSERT_X(sApp, Q_FUNC_INFO, "No application");
|
||||
const QUrl url(sApp->getGlobalSetup().getVatsimBookingsUrl());
|
||||
|
||||
Reference in New Issue
Block a user