mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-25 18:25:42 +08:00
refs #422 Take care of failed ISimulator::connectTo()
This commit is contained in:
committed by
Mathew Sutcliffe
parent
b65232b202
commit
8c46a3f6d4
@@ -410,10 +410,16 @@ namespace BlackCore
|
|||||||
// try to connect
|
// try to connect
|
||||||
m_simulatorPlugin->simulator->asyncConnectTo();
|
m_simulatorPlugin->simulator->asyncConnectTo();
|
||||||
|
|
||||||
// info about what is going on
|
if (m_simulatorPlugin) // can be already nullptr if connectTo() is synchronous and fails
|
||||||
emit simulatorPluginChanged(this->m_simulatorPlugin->info);
|
{
|
||||||
CLogMessage(this).info("Simulator plugin loaded: %1") << this->m_simulatorPlugin->info.toQString(true);
|
emit simulatorPluginChanged(this->m_simulatorPlugin->info);
|
||||||
return true;
|
CLogMessage(this).info("Simulator plugin loaded: %1") << this->m_simulatorPlugin->info.toQString(true);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool CContextSimulator::loadSimulatorPluginFromSettings()
|
bool CContextSimulator::loadSimulatorPluginFromSettings()
|
||||||
|
|||||||
Reference in New Issue
Block a user