mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 15:25:35 +08:00
Ref T786, further checks (shutdown, empty values)
This commit is contained in:
committed by
Mat Sutcliffe
parent
2156eb1831
commit
17cebfb8d3
@@ -467,6 +467,8 @@ namespace BlackSimPlugin
|
||||
void CSimulatorFs9::injectWeatherGrid(const CWeatherGrid &weatherGrid)
|
||||
{
|
||||
if (this->isShuttingDownOrDisconnected()) { return; }
|
||||
if (weatherGrid.isEmpty()) { return; }
|
||||
|
||||
if (!CThreadUtils::isCurrentThreadObjectThread(this))
|
||||
{
|
||||
BLACK_VERIFY_X(!CBuildConfig::isLocalDeveloperDebugBuild(), Q_FUNC_INFO, "Wrong thread");
|
||||
|
||||
Reference in New Issue
Block a user