mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-31 04:25:35 +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
|
||||
m_simulatorPlugin->simulator->asyncConnectTo();
|
||||
|
||||
// info about what is going on
|
||||
emit simulatorPluginChanged(this->m_simulatorPlugin->info);
|
||||
CLogMessage(this).info("Simulator plugin loaded: %1") << this->m_simulatorPlugin->info.toQString(true);
|
||||
return true;
|
||||
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);
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
bool CContextSimulator::loadSimulatorPluginFromSettings()
|
||||
|
||||
Reference in New Issue
Block a user